FAQ Database Discussion Community


View JMeter “Response Times Percintiles” in Jenkins

jenkins,jmeter,jenkins-plugins,jmeter-plugins
We are using JMeter's standard plugins set and we have "Response Times Percintiles" and "Response Times Distribution" as in the picture below: However, when we run those test on our Jenkins, we see only the standard report as in the picture below: Is there a way to make Jenkins show...

Jenkins - Xvfb Plugin - Start socket error

jenkins,jenkins-plugins,fatal-error,socketexception,xvfb
Everything was working good until today, but now I'm seeing an error while my Jenkins (1.585) job, which is running/using Xvfb plugin, it's giving me the following error. Any idea, why it's coming. I tried many times. 15:00:07 Xvfb starting$ Xvfb :10 -screen 0 1024x768x24 -fbdir /production/home/koba/JSlaves/loki10_1/xvfb-2015-02-09_14-59-58-7153097250048722116.fbdir 15:00:07 _XSERVTransSocketINETCreateListener: ...SocketCreateListener()...

How to tag Docker images with a Git tag in Jenkins?

git,jenkins,docker,jenkins-plugins
Hopefully I'm just missing something simple, but I cannot figure out how to tag a Docker image with a Git tag in a Jenkins job. I have been using the Docker Build and Publish plugin for building my images, but it's tag input only seems to accept token macros for...

Jenkins SVN on slaves

svn,jenkins,tortoisesvn,jenkins-plugins,jenkins-cli
I have a jenkins server which I configured to use SVN 1.7 (Manage Jenkins->Configure System->Subversion->1.7). I have a slave that i installed tortoiseSVN on, and added it the PATH variable in the slave machine. When i run svn --version in the slave i see svn, version 1.7.18 (r1615261) compiled Aug...

Avoid large log Jenkins file (and stop build if needed)

jenkins,jenkins-plugins,diskspace
We are using Jenkins (on Linux) to manage our Maven builds. Our users can create their own job and sometimes (3 or 4 times per year), they are doing a mistake and the job generates a large log file (79 GB the last time...). I had a look to existing...

Why does the Jenkins SVN plugin give error E170001 when connecting to my VisualSVN server?

svn,jenkins,jenkins-plugins,visualsvn-server
What I know about the VisualSVN server: it supports Windows Active Directory authentication and "basic" authentication using my Windows username and password. I can use TortoiseSVN, CollabNet, and Mac OS X Subversion clients successfully. To replicate the error, do the following: Install the Windows Jenkins package (version 1.616). Update the...

Deploy Build from Separate Job in Jenkins

jenkins,continuous-integration,jenkins-plugins,continuous-deployment
I have anywhere from 5 to 15 jobs in jenkins (varies from week to week) that deploy essentially the same code to our environments, but with different configurations. Is there a way to have one job do the building and separate jobs to do the deploying? I have seen people...

How to use build name setter plugin?

jenkins,jenkins-plugins
Does anyone know if there is a user manual somewhere on how to use the build name setter plugin for jenkins? The jenkins plugin website just seems to have a link to download the plugin and no information on how to use it. https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin

Access file parameter in jenkins

jenkins,jenkins-plugins,multi-configuration
I'm working on a multiconfiguration job(Regression_L1) in Jenkins whose task is to run 2 kinds of tests(test1 and test2). In the multiconfiguration job, it triggers an executor job(Regression_executor) to run script for the selected test. The Regression_L1 job is restricted to run in matrix_service_jobs node, while the matrix jobs are...

Jenkins Build Name Setter Plugin does not find variable

jenkins,jenkins-plugins
In Jenkins I use a parameterized build. I use the "This build is parameterized" and "List subversion tags" to which I set the "Name" to be SVN_TAG. Then I set this SVN_TAG in "Set Build Name" to "${SVN_TAG}". However, the build then says "Unrecognized macro 'SVN_TAG' in '${SVN_TAG}'" and it...

Jenkins: How to get value from a Groovy Script to be used in a downstream project?

groovy,jenkins,hudson,jenkins-plugins
I need to be able to get some slave information to be used in one of my jobs. I have a Groovy system script to access the slave information for (aSlave in hudson.model.Hudson.instance.slaves) { println('===================='); println('Name: ' + aSlave.name); println('getLabelString: ' + aSlave.getLabelString()); ... In here I can dig out...

Jenkins: How to get node name from label to use as a parameter

maven,parameters,jenkins,jenkins-plugins
I need to give a server name to a maven build. During the maven build this server name will be used to make a call that server do some tests on that server. Our servers have jenkins slaves on them and is grouped using labels Example Slaves/Node | Label Server1...

How to get the list of all projects/jobs in jenkins using java programaticaly?

java,jenkins,jenkins-plugins
I am a newbie to jenkins and I am trying to access the list of all jobs/projects in jenkins and their project files in java not groovy and parsing XML files. PS: Feel free to edit this thread! If downvoting it comment the reason!...

How to simultaneously launch a job 2 times on the same slave in Jenkins?

jenkins,parallel-processing,jenkins-plugins
I have Jenkins installed on my computer which configure to have just the master as a node (no other nodes) and number of executes is 5. I created a Job named "myJob" and I want to run it on the master 2 times at the simultaneously (meaning that if I...

Jenkins Flexible Publish plugin if else condition

if-statement,jenkins,jenkins-plugins
I am using the flexible publish plugin for jenkins and found it very useful. My goal is to pass a set of predefined parameters from a job to trigger another downstream job. The downstream job performs an action based on the string match evaluation. But if i dont pass the...

Jenkins Console Output Error

jenkins,jenkins-plugins
We've been using Jenkins for a while now, but recently we've added a couple plug-ins to the configuration and our Console Output is not showing in real-time anymore, we just get a big fat Java error! I've removed the offending plug-ins (emotional jenkins and Green Spot) in an attempt to...

SONAR in Jenkins - “can't find \bin\java.exe” (2015)

jenkins,sonarqube,jenkins-plugins
For some reason Sonar can't find the java.exe. Don't have in my JAVA_HOME semicolon... ERROR: JAVA_HOME exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be found there. env variable: JAVA_HOME=C:\Program Files\Java\jdk1.7.0_71 of course I have under this folder the "\bin\java.exe"... When I take...

values not persisting in dropdown of optional block - jelly/jenkins

java,maven,jenkins,jenkins-plugins,jelly
I have the following in config.jelly: <f:block> <table style="width:100%" id="rpmParameters-generic"> <j:set var="rpmParameters" value="${instance.rpmParameters}" /> <f:optionalBlock name="rpmParameters" checked="${rpmParameters != null}" title="Mandatory parameter for rpm/msi/zip artifacts only" help="/plugin/artifactory/help/common/help-rpmParameters.html"> <input type="hidden" name="stapler-class" value="org.jfrog.hudson.util.RpmParameters" /> <f:entry title="Operating System"> <select...

Jenkins not auto-updating text in console after upgrade

jenkins,jenkins-plugins
After upgrading Jenkins from 1.547 to 1.583, when viewing a job's Console Output, it stopped updating the text automatically. That is, in order to see the latest text, I now have to continuously refresh the page.

Jenkins - Running a single job addressing two nodes simultaneous - or intercommunicate between two jobs

jenkins,jenkins-plugins
Jenkins newbie, but have other build-server experience. I'm in progress of setting up a test job, where software on two nodes need to ping-pong with each other. I have a pool of labeled nodes (lets call them A, running windows 7) to run the testing software and another pool of...

Run Jenkins job only once on changes pushed on github

github,jenkins,jenkins-plugins,jenkins-cli
I followed this answer to set up a Jenkins job, and it's working fine. I have scheduled a Job on github master commit push as Poll SCM : * * * * * But, it continuously starts a build Job each minute. How can I restrict this so that it...

Booting up Vagrant from Jenkins throws Permission Denied

jenkins,vagrant,jenkins-plugins,vagrant-plugin
I am trying to Boot up Vagrant VM from Jenkins. I gave Vagrantfile path in 'Boot up Vagrant VM'. When the job runs, I get the following error: Failed to iterate on remote directory vagrant_projs [ vagrant ]: Executing command :[vagrant, up] in folder /Users/abc/Desktop/vagrant_projs [vagrant_projs] $ vagrant up [...

Jenkins automate build based on email

jenkins,jenkins-plugins
I am new user to Jenkins and planning to automate the build process. How to trigger a build in Jenkins by receiving an email and using email content during the build process? Can anyone please suggests what's the best way to do that?...

Jenkins - Integrating JIRA with Jenkins, for creating ticket automatically when build fails, in Jenkins

jenkins,jenkins-plugins
I am using Jenkins to run jobs and want to create/update tickets in JIRA, whenever build fails. I have downloaded JIRA plugin, Jira Issue Updater, JiraTestResultReporter plugins and configured URL and credentials, under Manage Jenkins/Configure System. In the job am running, under Post-build Actions, I added 'Create Jira Issue' with...

Jenkins clone jobs and change branch

jenkins,jenkins-plugins
I have a task that I want to realize with Jenkins, but I don't know how to do it. I have a view full of jobs, all pointing to the same svn repo. Each job build one maven module present on the svn repo. Once a year, we release a...

Upload apk to FTP with Jenkins

android,ftp,jenkins-plugins
I am unable to get an apk to go to FTP server wiht "Publish Over FTP" plugin. I have verified I connect to the server during configuring the plugin for connection. I don't know what path to use as my source file. Any ideas? Here is screen shot: Here is...

Jenkins execute shell on job's executor during CONFIGURATION time (and access workspace)

java,shell,jenkins,jenkins-plugins
I would like to create a simple Jenkins plugin. Basically it is a custom build step (Builder extension) with a dropdown list. The trick is that I want to fill this dropdown list from the result of a shell script/command executed during configuration time. Here is my method stub. public...

unable to get pylint output to populate the violations graph

jenkins,jenkins-plugins
my build steps: cd $WORKSPACE export TERM="linux" . venv/bin/activate pylint --rcfile=pylint.cfg $(find handlers -maxdepth 1 -name "*.py" -print) > pylint.log || exit 0 result of pylint.log: ************* Module handlers C: 1, 0: Missing module docstring (missing-docstring) C: 8, 0: Missing function docstring (missing-docstring) ************* Module handlers.foo C: 1, 0: Black...

How to block a Jenkins job from running at certain times

jenkins,jenkins-plugins
I have a Jenkins job which restarts our small in-house production system. It is fully automated, so when we check-in code changes, we run tests and other verification steps and finally automatically deploy the new version. It is usually not a problem restarting the system as it will be back...

How to use Chef Tracking Plugin in Jenkins

jenkins,chef,jenkins-plugins
I have a chef workstation setup on my Jenkins machine and currently use a "execute shell" in jenkins to run a shell script which runs knife bootstrap commands (for configuring nodes) .I have already installed the chef tracking plugin, but dont know how to use it for "tracking when/where/what files...

Jenkins Delivery Pipeline plugin and parameterized builds

jenkins,jenkins-plugins
I am using the Jenkins Delivery Pipeline plugin. I have some parameterized builds that are manually triggered. If I trigger a build from the project page, the build shows a screen where parameters need to be defined (as expected). However, when I start a parameterized build from the Delivery Pipeline...

Using “name” when Configuring Graphite with Jenkins Job DSL

groovy,jenkins-plugins,jenkins-job-dsl
I'm trying to configure the Graphite integration plugin for my jobs using Jenkins Job DSL. My block looks like this: coreJobs = [my jobs here] coreJobs.each{ a -> // some extra job config here job("$a") { project / 'publishers' / 'org.jenkinsci.plugins.graphiteIntegrator.GraphitePublisher' { selectedIp '192.123.1.456' metrics { 'org.jenkinsci.plugins.graphiteIntegrator.Metric' { queueName ".${a}.BuildFailed"...

Implementing security for users in jenkins

jenkins,jenkins-plugins
I am after a better solution for security in Jenkins. After my play around this space, my current solution is to implement the 'Project-based Matrix Authorization Strategy'. I was previously considering running Jenkins behind Apache and control security through Apache. But during my trial with matrix based security, I was...

Passing variable from shell script to jenkins

jenkins,jenkins-plugins
I trigger a shell script from Jenkins, This scripts get date and export it as a environment(Linux) variable $DATE. I need to use this $DATE inside same Jenkins job. I made job as parameter build. Created a string parameter as DATE value as DATE=$DATE. But it is not working. Please...

Automation of documenting code base using Doxygen plug in Jenkins CI environment

jenkins,doxygen,jenkins-plugins
I use a shell script to create/run doxygen doxyfile to document my code base which works absolutely fine(Schedule runs and recursive scan code base also works fine). Now my requirement is to do the same job using Jenkins CI. I added doxygen plug which generates documentation output and stores the...

How to create a testng xml file using jenkins

xml,jenkins,jenkins-plugins
I am displaying a HTML page to the user where I am providing users the options to select multiple test cases form jenkins. And based on the users selection I need to generate a XML file.Is it possible to generate a XMl based on user selection and If it is...

Jenkins with Git

jenkins-plugins
When trying a Jenkins plugin I am developing, I want to use an example project. As this example project is versioned by git, I want to use git for this project. Unfortunately, when running Jenkins with git it giving me error like GitException: cannot fetch origin repository from git. Is...

How to export credentials from one jenkins instance to another?

jenkins,jenkins-plugins
I am using the credentials plugin in Jenkins to manage credentials for git and database access for my team's builds. I would like to copy the credentials from one jenkins instance to another, independent jenkins instance. How would I go about doing this?

what is difference between .hpi and .jpi of jenkins plugins?

jenkins,jenkins-plugins
I had install the plugins in two ways that manually keeping the .hpi file in Jenkins home directory and install from Jenkins front-end(manage plugins). What i notice here is when i install the plugin manually (downloaded as .hpi file) it installed with extension .hpi and i had install the plugin...

Variable substitution in Jenkins plugin

java,jenkins,jenkins-plugins
I am developing a new Jenkins plugin that will be executed during the build phase of a Jenkins job and have a requirement to allow the user to specify a variable name (as opposed to a literal value) in the job configuration for the plugin. The intention is that when...

Jenkins Matrix build: how to build once and publish that binary to slaves?

android,jenkins,jenkins-plugins
I have a Jenkins Matrix build that splits my Android tests across 5 nodes in parallel. At the moment each of those 5 nodes has to build my Android binary, which takes a couple of minutes (which means I'm paying for 6x the number of VMs I need for this...

Retrieving command line -D options in Java

java,maven,jenkins,jenkins-plugins
I have clean integration-test -DclassId=appas a maven goal in a Jenkins Maven Job. How can I retrieve this in Java using System.getenv();? When I do this I am only seeing null....

Jenkins - Stage before “Source Code Management”

jenkins,build,jenkins-plugins
I need my build to run only if some conditions are met. For that I need to insert a check procedure before running the built-in "Source Code Management" that updates the svn working copy. Is there a way to do that?

Take value of a variable from Jenkins before build and update it in config.properties

jenkins,build,continuous-integration,environment-variables,jenkins-plugins
My requirement is that I have a Jenkins Job which is parametrized and asks the Environment Variable Value in which my scripts need to run. On giving the value, jenkin should take that value and update it in config.properties file. config.properties file: ENVIRONMENT = ${env} In Jenkins, I define my...

How to use environment variables in Jenkins git plugin configuration

jenkins,environment-variables,jenkins-plugins
I've got a job that checks out code from git. I'm using the Pre-scm build step plugin to run a simple batch script that creates a variable BRANCH_NAME. I am trying to configure the git plugin to check out to a sub-directory with the value of BRANCH_NAME. I know I...

Jenkins hpi plugin has too many jar files

jenkins,jenkins-plugins
I have created a new Jenkins plugin using netbeans. The plugin is working as expected, however the size of the .hpi file generated is too huge. I have only 1 jar file that needs to be added as a dependency. However, when I see the .hpi that was generated by...

jenkins with groovy postbuild .Not able to execute anything in groovy script field

groovy,jenkins,jenkins-plugins
I need to run set of code after the build is completed. I use groovy postbuild plugin(version2.2). I am new to jenkins and groovy. I tried simple println but it is not working. I tried something like this and its also not working. I dont even see error message if...

determine if it is jenkins environment inside gradle

jenkins,gradle,jenkins-plugins,build.gradle
I am just wondering is it possible that I can tell whether I am in a Jenkins environment inside gradle? I just want to do something like if (jenkins){ //do something }else{ //do other } ...

Incomplete list of jobs using getAllItems API call

jenkins,jenkins-plugins
I'm using following code snippet to retrieve job list in a Jenkins plugin : SecurityContext old = ACL.impersonate(ACL.SYSTEM); for (AbstractProject<?, ?> job : Jenkins.getInstance() .getAllItems(AbstractProject.class)) { // useful work on jobs } SecurityContextHolder.setContext(old); Unfortunately, not all jobs are processed through the loop, according to the Jenkins logs. I have Maven...

Upgrade Groovy installation on slave node to a recent version

jenkins,jenkins-plugins
I'm refactoring/enhancing an Execute Groovy Script build step and am hitting a version compatibility issue between my dev/debugging environment, which is running Groovy 2.3.7, and the version deployed by the groovy-plugin autoinstaller to the slave. We have that set to the relatively stale 2.0.6. The upshot is that I can't...

Can I store Jenkins configuration in the project repo (like Travis)?

jenkins,jenkins-plugins
How do you maintain the Jenkins job configuration in SCM along side the source code? As source code evolves, so does the job configuration. It would be ideal to be able to keep the job configuration in SCM, for the following benefits: easy to see who a history of the...

Using Jenkins plugin for SonarQube with two different installs and getting unexpected url for the new one

sonarqube,jenkins-plugins
Got two SonarQube install behind a Nginx proxy, slowly upgrading. Old 4.1 one and a new 4.5 LTS one. For the 4.1 the url returned is the public facing url in the build result. For the 4.5 the url is the internal url for the build result. The Jenkins plugin...

Build failure Analyzer in Jenkins

jenkins,jenkins-plugins
I Am Working on Build Failure Analyzer Plugin In Jenkins.I went through the plugin documentation(https://wiki.jenkins-ci.org/display/JENKINS/Build+Failure+Analyzer).It works fine when I select Text Source as Plain Text but when I select the build log as the text source and match the text field with the pattern it gives me Invalid Url Error.The...

Ant job adding escape character for String Password field

java,ant,jenkins,build,jenkins-plugins
I have an Ant build that I am invoking from Jenkins. The Jenkins job has parameters, one of which is a password string ("Password Parameter" in Jenkins). The Ant target that writes the password in the properties file is specified as: <target name="pwd-properties"> <echo>Password is: ${password}</echo> <propertyfile file="data.properties" comment="property file">...

Issue on Build Blocker and Multijob plugin Integration in jenkins

jenkins,jenkins-plugins
I am using build blocker along with MultiJob plugin in my jenkins job to orchestrate a pipeline. Here is a very small part of what I want to achieve. Dependency within jobs JobA --> Job B -(Join Plugin) --> Job C and Job D --> JobE (Join Plugin End) Another...

How to read Jenkins Parameters?

jenkins,jenkins-plugins
I am trying to Read Parmeters in jenkins job. I have set String Parameter for Job as follows. but when I am tring to read this parameter in windows batch command as it wont read it's value but simply return variable name only as follows I have also installed parameterized...

Execute SVN Update in Jenkins - Copy a Folder to Web root Explicitly from SVN as a Build Step

powershell,batch-file,jenkins,jenkins-plugins
I'm new to Jenkins CI.I'm trying to get SVN update (myFolder) inside a job as build steps. I want to explicitly copy some files to web root as I can't have them inside my solution. Build Steps I need to perform. Build Solution Publish Copy myFolder to web root Sync...

optional block in jelly.config not translating to the backend in jenkins plugin development.

java,jenkins,jenkins-plugins,maven-jetty-plugin,jelly
I have jelly.config with the following: <f:block> <f:optionalBlock inline="true" name="dynamic" title="Mandatory parameter for rpm artifacts only" checked="false" help="/plugin/artifactory/help/common/help-artifactType.html"> <f:entry title="Operating System"> <select class="setting-input" name="operatingSystem"> <option value="rhel5">rhel5</option> <option value="linux">linux</option> </select> </f:entry> <f:entry title="Architecture"> <select...

Find view name from jenkins GUI given the job details

jenkins,jenkins-plugins
I have few hundreds of jenkins jobs all classified into different views based on different projects. So, I already have around 30+ views in Jenkins. My question is, Given a jenkins job name can I find out which View it is classified into.

Check Jenkins job status after trigger a build remotely

jenkins,build,jenkins-plugins,jenkins-cli
I have a script to trigger a job at jenkins remotely using token. Here is my script: JENKINS_URL='http://jenkins.myserver.com/jenkins' JOB_NAME='job/utilities/job/my_job' JOB_TOKEN='my_token' curl "${JENKINS_URL}/${JOB_NAME}/buildWithParameters?token=${JOB_TOKEN}" After I run it, I got following response: * Hostname was NOT found in DNS cache * Trying 10.5.187.225... * Connected to jenkins.myserver.com (10.5.187.225) port 80 (#0) >...

Jenkins-Build when a change is pushed to GitHub option is not working

git,github,jenkins,jenkins-plugins,jenkins-cli
Jenkins is running on localhost. I have my repository in GitHub. I have the option to 'Build when a change is pushed to GitHub' checked. When I click 'Build Now', build is done successfully, no issues there. But when am committing code to my repository, auto build is not happening....

Jenkins email notification is not working

shell,email,jenkins,jenkins-plugins
I just wanted to send an email from Jenkins Editable email notification. I want the output as table format. In Editable notification, there is an option to give Content Type is html and input html tags. I configured everything. but when I triggered the build it says 'No emails triggered'....

How to deploy Jenkins extension point

jenkins,jenkins-plugins
I am trying to write an extension point to the dependency graph view plugin. I read the documentation on extension points but didn't find how to deploy my implementation. I guess I need to reference somehow the original plugin to get the method to implement (how can I get it...

Groovy Postbuild do not execute scripts on Jenkins

groovy,jenkins,jenkins-plugins
I've written simple groovy script, but I don't know how to execute it on Jenkins. Look at this simple script: String jbN = System.getenv('JOB_NAME') println jbN println "Hello" I would except that I will reveived at least "Hello". Script give no return. I've just received Build step 'Groovy Postbuild' marked...

How to loop through the console output in Jenkins using customized jelly script?

jenkins,jenkins-plugins,jelly,email-ext
I am trying to write a jelly script in Jenkins Email-Ext that returns part of the console output. I am trying to loop through console output for 'failure'. Can someone give me a sample script or format for doing this using jelly script template? Thanks in advance....