Pipeline and SonarQube

2016-06-27 Thread Lionel Orellana
Hi, I have a job where I use the SonarQube plugin option to "Prepare SonarQube Scanner environment" and then run the sonar maven goal like this: $SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL $SONAR_EXTRA_PROPS How can I do this in Pipeline? I would image I can Prepare SonarQube environmen

Re: Pipeline and SonarQube

2016-06-27 Thread Antonio Muñiz
To get a similar UX for SonarQube when using Pipeline, the SonarQube Jenkins Plugin needs to be adapted to Pipeline (i.e. a `sonar` step that prepares the environment and execute the analysis using any predefined goals (with any predefined options). On Mon, Jun 27, 2016 at 9:06 AM, Lionel Orellana

How to execute PowerShell command/scripts directly from Jenkins 2.0 pipeline groovy script

2016-06-27 Thread Yogesh Bhole
How to execute PowerShell command/scripts directly from Jenkins 2.0 pipeline groovy script. Right now I am executing it from bat command. Using it I have to think lot about single/double quotes when using paramaters in statement. bat 'powershell "Stop-Service -Name Windows.* -Verbose"' It cou

Configuring Git hub Project in Jenkins

2016-06-27 Thread Lakshmi Brunda
Hi All, I am trying to Set up Jenkins Job for my GitHub project having C# script. But i am facing below error ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from g...@github.com: /.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:792)

Re: Pipeline and SonarQube

2016-06-27 Thread Lionel Orellana
Some work seems to be happening here: https://jira.sonarsource.com/browse/SONARJNKNS-213 Thanks. On 27 June 2016 at 17:57, Antonio Muñiz wrote: > To get a similar UX for SonarQube when using Pipeline, the SonarQube > Jenkins Plugin needs to be adapted to Pipeline (i.e. a `sonar` step that > pre

Jenkins Server - trying to run AWS cli script - getting an error

2016-06-27 Thread AboveBeyond
I am running a Jenkins server on Windows server with AWS CLI installed. while trying to run a script through Jenkins job i get the following error: "You must specify a region. You can also configure your region by running "aws configure"." AWS cli is configured (running the script manually

Jenkins ui not loading sometimes

2016-06-27 Thread Rumesh Bandara
Hi All, We have a Jenkins setup with 1 master + 4 worker nodes and more than 250 jobs, which would run up to a maximum of 10 executors at a given time. However sometimes Jenkins ui doesn't load at all due to heavy load on master server. Can we do any java tuneups or OS optimizations to avoid ui

Re: Jenkins ui not loading sometimes

2016-06-27 Thread Daniel Beck
Do this and provide the information: https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump > On 27.06.2016, at 16:19, Rumesh Bandara wrote: > > Hi All, > > We have a Jenkins setup with 1 master + 4 worker nodes and more than 250 > jobs, which would run up to a maximum of 10 execu

Re: How to execute PowerShell command/scripts directly from Jenkins 2.0 pipeline groovy script

2016-06-27 Thread Slide
The powershell plugin would need to add support for pipeline. You could file a request in JIRA for it. On Mon, Jun 27, 2016, 01:21 Yogesh Bhole wrote: > How to execute PowerShell command/scripts directly from Jenkins 2.0 > pipeline groovy script. Right now I am executing it from bat command. Usi

Re: JDK Installer Groovy script

2016-06-27 Thread Mike Albert
Did you ever find a solution for this? I'm trying to automate the JDK installations for a new jenkins server. Thanks. On Friday, April 29, 2016 at 11:03:50 AM UTC-4, Stijn Diependaele wrote: > > Dear, > > I'm trying to write a groovy script which manages the JDK installs. > > The code below wo

Re: JDK Installer Groovy script

2016-06-27 Thread Mark Waite
Since Jenkins has an http server delivering content from the userContent directory, I configured the JDK download location to be the userContent directory of the Jenkins server. That allows me to keep the JDK download self-contained within the Jenkins server, without any scripting. Mark Waite On

Unable to update the Jenkins plugin page

2016-06-27 Thread R Lakshmi Prasad
As there are not plugins listed in the Available plugins page, I tried to update in the advanced settings, and this is the error I am getting URL: https://jenkins.myweb.com/pluginManager/checkUpdatesServer A problem occurred while processing the request. Please check our bug tracker

Re: How to override the environment variables for Jenkins slave when adding new slave to the Jenkins master?

2016-06-27 Thread praveen
I've tried to install the maven automatically, But It was not working. Jenkins master configuration is like this install - install maven automatically (version 3.0.5), However slave(on-demand) unable to install maven on the target directory(slave was spun up with the AWS ec2 plugin). My builds

Re: How to override the environment variables for Jenkins slave when adding new slave to the Jenkins master?

2016-06-27 Thread Mark Waite
That's a surprising screen shot that you included. The Maven installations section on my Jenkins 1.651.3 installation does not have a field for MAVEN_HOME. I believe Jenkins computes the correct value for MAVEN_HOME entirely on its own in my case. Any idea what's different between your environme

Re: Pipeline and SonarQube

2016-06-27 Thread Lionel Orellana
A workaround is to have a freestyle job do the sonar analysis and call that from the pipeline. I'll see if I can jump in and do some work in the SonarQube plugin though. On Monday, 27 June 2016 21:54:24 UTC+10, Lionel Orellana wrote: > > Some work seems to be happening here: > https://jira.sona

Using Git Credential Manager with Git for Windows.

2016-06-27 Thread Fred Clausen
Hello All, The Git for Windows distribution no longer uses the "store" or "winstore" credential store so credentials in the form of a username/password pair cannot be read from a file. I have found a way to pre-popula

Re: Using Git Credential Manager with Git for Windows.

2016-06-27 Thread Mark Waite
Not as far as I know. On Mon, Jun 27, 2016 at 7:51 PM Fred Clausen wrote: > Hello All, > > The Git for Windows distribution no longer uses the "store" or "winstore" > credential store so credentials in the form of a username/password pair > cannot be read from a file. I have found a way >

authorization headers for jenkins

2016-06-27 Thread ran son
Hi Im trying to automate job creation from Jenkins using powershell and using BASIC authentication. This works if i use AD auth with "logged in users can do anything " option enable. We had to switch to matrix based security and the BASIC auth no loger works. script below, does anyone know wha

Powershell calls to SQL - thread safe?

2016-06-27 Thread Neil Hayes
This should be simple and certainly not rocket science, yet I can't get this to work 100% of the time. 1. I have several jobs that are allowed to run concurrently. 2. All jobs use the same Powershell Script 3. Each job has different environment variables making them unique. What does the Powers

Re: Jenkins ui not loading sometimes

2016-06-27 Thread Re
Hi Daniel, I sent you the thread dump. Please have a look. Thanks, Rumesh On Mon, Jun 27, 2016 at 7:55 PM, Daniel Beck wrote: > Do this and provide the information: > https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump > > > On 27.06.2016, at 16:19, Rumesh Bandara wrote: > > >

Re: How to override the environment variables for Jenkins slave when adding new slave to the Jenkins master?

2016-06-27 Thread praveen
Jenkins system configuration also consisting of this section. on-demand slave that I've configured not using either of this configuration. Jenkins version 1.656 On Thursday, June 23, 2016 at 3:14:20 PM UTC-7, praveen wrote: > > Configured automatic slaves for couple jobs on Jenkins using ec

Re: Using Git Credential Manager with Git for Windows.

2016-06-27 Thread Fred Clausen
Actually, the problem was that Jenkins runs as the Local System account instead of Administrator. This meant that I was inserting the credentials into the wrong Windows Credentials Store. I updated my Chef code[1] to run the credential insertion[2] as the System Account and then it all works fi