How can we execute Jenkins job using other user credential

I need to execute few of the Jenkins jobs such as “Release to Production” through Jenkins UI using logged on user credential. The reason is, we have separate Support Team Members, who have access to the production boxes and not the Dev team members. So, in order to deploy any code base to production, all […]

Jenkins JUnit Attachments Plugin throws 404 for attached files

Currently I’m running a Maven 3 build with Selenium/WebDriver tests. Whenever a test fails, it will snap a screenshot and save it to the correct folder (for the plugin). When the job finishes, I can see all the attachments listed. I can also copy the attachments off of the Jenkins server and view them. However, […]

Npm installs fails on cloudbees jenkins

With a strange checksum error, And I can’t figure what’s wrong. it happens both when I installed Npm and node as cloudbees support suggested and when I used node-js-jenkins plugin. both when using -g and not using -g flag. what’s wrong? getting this log: > Unpacking > to > /scratch/jenkins/tools/ > on s-68b3777c $ […]

Multiple projects sharing a jenkinsfile

I have multiple projects with similar build steps and I am looking into reusing a Jenkinsfile pipeline across these projects. I am having a hard time to find documentation on how to implement such an standard (to my opinion) setup. Here are my requirements : 1) a Jenkinsfile is stored in repo, shared across multiple […]

SonarQube warning on MSBuild version

I am using Sonar 5.3 server, and in Jenkins I am at SonarQube Runner 2.2.1. I recently upgraded sonar server from 4.5.2 to 5.3 but did not touch anything in Jenkins. Now when I am Invoking SonarQube standalone analysis, then I am getting the things done, but I am getting warning WARN – * Use […]

Validating Jenkins plugin forms with Ruby

I’m developing a Jenkins plugin in Ruby. You’re supposed to be able to configure every node that connects to the server so that an email is sent to a specified address when the node loses its connection to the master. EmailNodeProperty adds a field to enter an email address: # # Save an email property […]

jenkins maven setPerCoreThreadCount

Jenkins ver. 1.538 With Maven 3.1.0 works just fine With Maven 3.2.1 it get the following error Jenkins installed Maven 3.2.1 itself (downloaded from Apache and extracted) What is wrong? Parsing POMs maven31-agent.jar already up to date maven31-interceptor.jar already up to date maven3-interceptor-commons.jar already up to date [project] $ /opt/jenkins/tools/hudson.model.JDK/java-1.7.0/bin/java -Xmx512m -Xms512m -Dfile.encoding=UTF-8 -XX:PermSize=128M -cp […]

What is the effect on @NonCPS in a Jenkins pipeline script

I have a pipeline script in Jenkins. I used to get this exception: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.json.JsonSlurperClassic parseText java.lang.String I looked the exception up and I found some indications that I should annotate the method where theexception occurs with @NonCPS. I did this, without really understanding what this does. After that […]

Maven toolchains.xml location under Jenkins

I’m finding it difficult to use Maven toolchains together with Jenkins. I need to specify that tests should be run with a 32-bit JVM, and doing this in by placing a suitable JDK definition in $HOME/.m2/toolchains.xml works when I am running locally on my machine, but how do I get this to work in a […]

Jenkins CI with chef

Is there any way I can integrate Jenkins with chef server so that I can create jobs to be executed so that I don’t have to go to the Chef Workstation. DO I need to install jenkins on a separate server or the chef workstation? CAn I execute all the recipes directly from the Jenkins […]

Git Baby is a git and github fan, let's start git clone.