FAQ Database Discussion Community


Unable to open word document from jenkins

windows,jenkins,ms-word
I have one windows utility which opens word document, extract data out of it and generate another word document using that data. Now my problem is that this windows exe is working fine directly on command prompt, but if I call this exe through jenkins, i.e. build step "Execute windows...

Run Jenkins' Cygwin script as user

bash,jenkins,cygwin
I have Jenkins running on Windows, and I have a build that works fine under CygWin bash from the CygWin terminal, so I now want to automate it. However, using this script: #!C:\cygwin\bin\bash.exe whoami make The system reports me as nt authority\system, not the ken that I get when using...

Automating deployments of large distributed client server application part of CI / CD

jenkins,continuous-deployment,distributed-system,continuous-delivery,automated-deployment
For one of our application we are trying to automate the deployment process. We have end to end Continuous Integration implemented (Build/Test/Package/Report) for this application. Now we are trying to implement the automated deployment. This application needs to be deployed in 2000 servers and 50 clients under each server. Some...

Jenkins - Block “Execute shell”

shell,jenkins
We are using Jenkins for a variety of jobs, including both building and testing, with different developers having access only to the jobs within their scope. However, when we are allowing a Jenkins user to "Configure" the job, we are basically permitting them to run shell (via the "Execute shell"...

Why does `su` not work in Jenkins?

shell,jenkins,su
su doesn't seem to work as intended when run in Jenkins build job script. su username1234 whoami returns jenkins My initial guess is that each line of the Jenkins shell script is a new shell. But doing repeated echo $$ on separate lines shows that's not the case. ...

Monitor Application logs as part of Jenkins

c#,.net,iis,jenkins,continuous-integration
I have a CI server using Jenkins which builds the code, starts the server, and runs the application tests. I would like to monitor the logs during this process to check for errors (e.g., "ERROR"). I see a Log Parser Plugin for jenkins but that only seems to monitor the...

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...

How do I print the current classpath for a Jenkins plugin?

java,jenkins,classpath,classloader
I'm developing a Jenkins plugin but I'm having a few problems which I think might be due to a jar missing in the plugin's classpath even though its in the plugin's WEB-INF/lib directory. Normally I would use the following code in Java to print the classpath but this doesn't seem...

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...

Install gradle on Centos

jenkins,gradle
I'm trying to install gradle for building android app with the help of Jenkins. But I'm not able to find the link to download gradle for Centos. I tried to use binaries from https://gradle.org/downloads/, but when I unzipped I got gradle.bat file inside bin directory which tells me that this...

Firefox crash when I run sellenium unit test

c#,firefox,selenium,jenkins,selenium-webdriver
I start use Selenium.WebDriver (v2.45) to run visual tests. As web driver I use FirefoxDriver. I have installed Firefox 38. When I try run test firefox return exception with message: FF has stopped working. Anyone any sugesstion, it worked in previous week, is it possible that my test was creashed...

Build failure due to Sonar plugin

service,jenkins,sonarqube,sonarqube5.1
My build keeps failing on Jenkins because of this error: ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) at...

Retrieve a password stored as env variable in Jenkins

android,jenkins,apk
I am using Jenkins to build my Android application. When building an Android app, there is a step where the build is signed with a distribution certificate. I have configured this into Jenkins and it works perfectly: jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore $KEYSTORE_FILE -storepass $STORE_PASS -signedjar $SIGNED_APK $INPUT_APK...

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...

Selenium test execution via jenkins on linux box

linux,selenium,jenkins,junit,selenium-webdriver
How to run selenium webdriver scripts via jenkins on linux machine and publish the test results in Jenkins? I am using Jenkins as my Continuous integration tool. Jenkins is running in linux machine. I need to run the Selenium test suite during build process in jenkins and publish the results...

Can Selenium IDE/Builder run same test case on many pages?

javascript,selenium,jenkins,automated-tests,selenium-ide
Is there a way to run the same Selenium test case on many pages without specifically defining a list of pages? Say, for example, I have a UIMap pageset defined like this: var map = new UIMap(); map.addPageset({ name: 'pages', description: 'all pages', pathRegexp: '^thisistheroot/$' }); In the pageset, I...

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!...

Jenkins - Trigger build if file changes http archive

jenkins
Is there a way to trigger a build if a http file changes? My url: http://archive.foo/latest/application_build_001.img The name of the image file changes to eg. application_build_002.img when a new build is avalible. I tried the URL Trigger plugin for jenkins with "Check the last modification Date" and "*" in the...

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....

Single Jenkins instance using multiple Sonar instances

java,jenkins,sonarqube
Is it possible to configure Jenkins to use multiple Sonar instances? Currently we are using one Sonar instance for legacy projects (Java 6) and a new Sonar instance for Java 8...

Fail Jenkins job when nosetests fail

python,shell,jenkins,continuous-integration
I am managing deployment / CI of a Flask app through Jenkins. I have a build step in the form of an executed shell which runs a shell script in the host that in turns runs nosetests. The Jenkins shell command looks like so: $WORKSPACE/ops/test_integration.sh integration.sh looks like so: SETTINGS_FILE="settings/integration.py"...

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...

Trying to jslint files using jenkins .. java.io.FileNotFoundException: /var/lib/jenkins/jobs/test/workspace (Is a directory)

jenkins,jslint
Error seen in jenkins job console output .. [JSLint] Ready [JSLint] calling jslint with args[-DxmlOutput=/var/lib/jenkins/jobs/test/workspace/, /var/lib/jenkins/jobs/test/workspace/src/main/resources/levels/level1.json, /var/lib/jenkins/jobs/test/workspace/src/main/resources/levels/level2.json, /var/lib/jenkins/jobs/test/workspace/src/main/resources/levels/level3.json] [JSLint] JSLint path is jar:file:/var/lib/jenkins/plugins/jslint/WEB-INF/lib/classes.jar!/com/boxuk/jenkins/jslint/JSLintBuilder/jslint.js ERROR: Build...

jenkins cannot run firefox: No protocol specified Error: cannot open display: :0

linux,firefox,jenkins,python-3.4
I have installed jenkins as a service on linux mint. I am trying to run tests written in python and script cannot run firefox. This line is a problem. ... self.browser = webdriver.Firefox() ... When i log in as jenkins user, i can't run firefox. getting this error : (process:3758):...

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 } ...

How to run selenium tests in jenkins?

unit-testing,selenium,jenkins,automated-tests,python-3.4
I have selenium tests written in python 3.4. How to run them from jenkins after success build ? Process is : 1. pull from git repository 2. python setup.py build 3. python setup.py install After that i need to run server and selenium tests....

SBT is wasting lots of disk space for dependencies each build

jenkins,sbt,playframework-2.4
We have a Playframework 2.4 (with SBT 0.13.8) project which we build on a Jenkins. Today, the Jenkins stopped working because his $JENKINS_HOME run full. I analyzed which tool was wasting the disk space: SBT. There is a folder located at .sbt/0.13/dependency/module/dynamic that contains quadrillions of subfolders. Each of these...

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?

What is difference between jenkins & Urban code build [closed]

jenkins
Can someone please share your experience on difference that u felt as difference between jenkins & UCbuild P.S: Please post some technical aspects....

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...

create email list of all users

groovy,jenkins,jenkins-scriptler
On occasion I need to email all Jenkins users, for example warning them Jenkins will be offline for maintenance. The script below gives me email addresses for all people that Jenkins knows about, but it includes people that don’t have accounts, these are people that have committed changes that 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...

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...

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...

How to access jenkins parent job build id in a MultiJob?

maven,jenkins
I have a requirement to trigger Automation Suite in multiple phases and summarize test results in a single test summary report. I configured a Jenkins Multi Job to trigger my automation suite, which is divided in to multiple chunks say suite#1, suite#2, suite#3, suite#4 (each suite is a maven job)...

using classes in jenkins job dsl

groovy,jenkins,jenkins-job-dsl
Hi all I have a problem and I can't seem to figure it out. So I'm creating some helper classes for my dsl to use, but it just does not seem to execute any method within these classes. I have created a job with the following dsl in it: class...

Jenkins continuous deployment error

git,jenkins
I am learning Jenkins CI test & deploy as stated in the excellent tutorial http://code.tutsplus.com/tutorials/setting-up-continuous-integration-continuous-deployment-with-jenkins--cms-21511 at the end of the tutorial, it should handle the deployment of the app... as per the deploy script and the Jenkins project config w ./script/deploy #!/bin/sh ssh [email protected] <<EOF cd ~/hello-jenkins git pull npm...

Upgrade SonarQube issues

service,jenkins,webserver,sonarqube,sonarqube-5.0
I'm having issues installing my instance of SonarQube 4.4 to 5.1. The instructions say to stop the SonarQube server, match up a couple files (back up DB, copy plugins, etc.), and then restart the sonar server for the updated version. My problem is I'm not sure how to start/stop the...

Triggering a Git fetch, reset using Jenkins

java,eclipse,git,ant,jenkins
I am in need of an urgent help and any guidance from anyone out there would be really appreciated. Please find below the use-case that I am trying to accomplish here: I have a Java package which is checked in Git (and code.amazon.com) and I have a Ant job to...

Jenkins does not find my git repository in Visual Studio Online

git,jenkins,visual-studio-online
I have a Visual Studio Online project working with Git. Everything works fine from inside Visual Studio. I'm trying then to configure a Jenkins job that gets the code from this project, but without success. Although the URL and the credentials are correct, Jenkins gives me this error on the...

Downgrade Jenkins

jenkins,downgrade
I updated Jenkins some days ago. But in current Jenkins version, there are some annoying bugs. Is it possible, to downgrade the version of Jenkins and when it's possible, how is it possible?

UI test Automation of .Net application on Jenkins, How?

.net,jenkins,automated-tests
If it is a web base. I know that we can use selenium. But This case is .Net Windows-based application. So, is this possible? and how to do it? I checked NUnit but it is more like unit testes than UI test. I checked Autoit but I still don't understand...

Jenkins/Hudson Groovy Script Console: Flexibility

groovy,jenkins,hudson
I really like being able to run Groovy scripts in Hudson (or Jenkins, but I use Hudson). For example, see my question In Groovy, how do I get the list of parameter names for a given job? Hudson parameter names question][1] The thing is, now I'd like use these Groovy...

Running Jenkins job with multiple browsers

jenkins,junit,nosetests
I am using the combination of Jenkins, python, unittest, nosetests to run test suites. I publish the results in nosetests.xml to Jenkins using Junit plugin. My question: How can I run the same test suites with different browsers (Chrome, FF, IE,…,etc) and publish all the results in the same Jenkins...

How can I use GoogleMock in jenkins?

c++,gcc,jenkins,centos,googlemock
I installed Jenkins on a CentOS vm. Now I want to run unittests (google test) with mocks (google mock). I tried installing the frameworks like described here. (On my lubuntu machine everything runs without a problem using these steps) When I try to build: g++ -O2 -pthread -Werror -Wall -o...

Jenkins Maven POM Version number not changing

maven,github,jenkins,pom.xml,snapshot
I have a simple Maven project that I am using as a Sandbox project to investigate how to push variables from Jenkins into a Maven build so they appear in the artifacts. (Or better still have Jenkins add parameters to the Maven build and leave the original intact). I have...

How to rename Jenkins build status

jenkins
Jenkins build statuses are SUCCESS, FAILURE , UNSTABLE and ABORTED I would like to rename UNSTABLE status to something else, i.e. ERROR. How can it be done without patching Jenkins source code?

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 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...

Jenkins: Post build actions on conditions

jenkins,hudson
I want to run some post build actions in my Jenkins job on condition if a string or a regular expression is present in the console log. Any plugin available to do this?

Delete jenkins jobs having the matching pattern

jenkins,jobs
How to delete jobs on jenkins having the prefix "Data_jobs_" ? and How to disable all jobs having prefix "Data_jobs_server" ? Anyone know how to do this by going /script page ??...

How to use jenkins for CI with perforce

jenkins,continuous-integration
Looking for some information on how to setup Perforce and Jenkins for CI. Any kick start information will be greatly helpful.

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...

Get the Git Working Branch in Gradle on Jenkins

git,jenkins,gradle
I want to have the current Git branch in the Version name of my Android app. I built in this snippet from here into my build.gradle: def getWorkingBranch() { // Triple double-quotes for the breaklines def workingBranch = """git --git-dir=${rootDir}/git --work-tree=${rootDir}/.. rev-parse --abbrev-ref HEAD""".execute().text.trim() print "Working branch: " + workingBranch...

How to get culprits or committers inside a Jenkins workflow with one or more SCMs

version-control,jenkins,jenkins-workflow
Is it possible to access information about committers and/or culprits of a Jenkins workflow job when checking out from one or more SCMs (either via checkout() or other SCM steps like git/svn)? The intention is to use that information to notify committers and/or culprits about the job status, for example...

Jenkins doesn't refactor folder names, SonarQue gives response

java,git,jenkins,sonarqube
So I am using a continous integration path (IDE -> Github -> Jenkins -> SonarQube) and I had to refactor some package names (the first character was uppercase, not as it should be) to lowercase. However, sonarqube now gets stuck on the foldernames that Jenkins uses. See, I had a...

Not able to build maven project using Maven configured with Jenkins

jenkins
Building in workspace C:\Users\5078722.jenkins\jobs\TempExp\workspace > C:\Program Files (x86)\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url Fetching upstream changes from > C:\Program Files (x86)\Git\bin\git.exe --version # timeout=10 using .gitcredentials to set credentials > C:\Program Files (x86)\Git\bin\git.exe config --local credential.helper store...

can't export a variable from execute shell in Jenkins to other project (with using properties file)

bash,shell,jenkins
I have a Jenkins project with one "Execute shell" that executes some bash commands and exports one variable to the env. variables: #!/bin/bash ... TARGET_FULLPATH="blablabla" export TARGET_FULLPATH In addition, I have configured to "Post-build Actions" with: "Trigger parameterized build on other projects" "Current build parameters" "Predefined parameters" -> FULLPATH=$TARGET_FULLPATH But,...

How can I run the Jenkins jobs through terminal?

jenkins,terminal
I heard an version that webhooks could be used for this. Please help)

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....

Config file management

jenkins,continuous-integration,drone
When using build system like Drone.io, or Jenkins, what is the best way to manage configuration files? In Jenkins I use a plugin that let me create some config text files. However, there is no grouping. I wish to know how you guys are managing your config files for different...

Block Jenkins job until a certain resource is available

jenkins,continuous-integration,integration-testing
When using Jenkins as an integration server, some of my tests require the availability of external resources like an MySQL database server. Is it possible to block a job until such a resource is available? The only workaround I can think of is using a periodically executed upstream job which...

read data from file and use the data as multiple checkboxes in extended choice parameter in Jenkins

jenkins
I have a file with a list of cases that i would like to be able to use as multiple selection check box in my Jenkins project. example: jenkins.properties case01_successful_Connection case02_successful_Disconnection case03_unsuccessful_Connection ... The list of cases (in the file) can be from time to time get bigger or smaller!...

Jenkins (cloudbees): remotely trigger build (e.g.via instant message) w/o creating user account in Cloudbees

jenkins,cloudbees
We're using Jenkins (and precisely Cloudbees) for couple years. Well, it works. Not I have new use case when I would like to allow trigger build remotely (w/o user account in Cloudbees). Looks like it's impossible (standard token trigger mechanism requires an account in Cloudbees). The only one way that...

Triggering Jenkins to run application tests when GitHub PR is created

git,jenkins,continuous-integration,ansible,continuous-deployment
I am a noob to Jenkins, and I have a Jenkins server that runs an ansible playbook to deploy the app. I would like to be able to have Jenkins run an ansible playbook which runs application python tests when a GitHub pull request is opened. I would then like...

Saving docker container image

jenkins,docker
I created a new docker container using jenkings image This is the command I ran docker run -p 8080:8080 -v /var/jenkins_home jenkins I created a few jobs on the jenkins instance and commited the image docker commit 7b903d061654 test When I run the image I created using the command (below)...

How to clean Jenkins workspace only if build fails

jenkins,build
In the interest of reducing build times I would like to only clean down the Jenkins job workspace if a build fails. Is there of doing this using post build action? Does Jenkins set a variable to the effect of 'BUILD FAILED' that can be read in a script that...

Excluding jobs that haven't run recently from a view in Jenkins

jenkins
Is it possible in Jenkins to exclude jobs from a view if they have not run recently? I would like our default view to exclude jobs that have not run in the past month, because we don't need to see jobs from parts of the product that are not under...

Angular/Jasmine: $httpBackend.expectGET works on Mac, not on Linux

linux,angularjs,jenkins,jasmine,protractor
I have the following setup to test a directive: beforeEach(inject(function($compile, $rootScope, $injector) { $httpBackend = $injector.get('$httpBackend'); var html = '<password-strength-bar password-to-check="password"></password-strength-bar>'; scope = $rootScope.$new(); elm = angular.element(html); $compile(elm)(scope); $httpBackend.expectGET('l10n/en.js').respond({}); $httpBackend.expectGET('tpl/page_signin.html').respond({}); })); This works fine on a Mac. However, when I run the same code on Linux, it fails with the...

How to set jenkins build number in artifact name

java,jenkins
Currently my artifact is looking like this: project-1.1.jar What I want is to add the Jenkins build number in order to look like this: project-1.1.45.jar where 45 is the build number....

How to display all keep forever build number using Jenkins REST API for a specific job?

jenkins
I read the following post which does what I want for all jobs (and I made it works) List all keep-forever builds in Jenkins? here is what I have now : http://jenkinsmediaprocessor:7880/api/xml?depth=2&xpath=/hudson/job/build[keepLog=%22true%22]/url&wrapper=forever But I only want to display a specific task. However I don't know where to set the job...

Is it possible to save an adobe pdf file using selenium web driver and one click build Jenkins

java,pdf,selenium,jenkins
Here's my dilemma. I'm creating some automation tests using selenium web driver coding in Java. The main output of the software is to load a PDF in adobe acrobat. I'm also using Jenkins which is why my problem has come about as I wont be able to physically see the...

Jenkins job setup automation with SVN credentials

shell,svn,curl,jenkins,credentials
I created a deploy script for a virtual machine (Ubuntu). This script installs SVN, Jenkins, etc, created a job in Jenkins using a curl POST request and an uploaded config.xml (this file contains the job details). But then I couldn't set up the SVN credentials with this script. I only...

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...

Some of my tests show prepended with junit.framework

java,unit-testing,jenkins,junit,junit4
I have a set of junit tests that run automatically on my build server (Jenkins). I run more than 500 tests. Most of them, in the test results view, show up with the correct package value Example : results for com.test.app.RollingArchiveTest But I have 8 tests that have junit.framework prepended...

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...

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 [...

Display artifact in Jenkins Build description

plugins,jenkins
I would like to automatically display a artifact as part of the build description. Now I can do this by manually editing the build description but that would mean I have to do this for every build. Is there a way to automate this? This is what I would like...

Jenkins Auto Reload Configuration Possible?

jenkins
I have tow Jenkins servers with sharing one jobs directory to make high availability. However if one server built any of the workspace, another server will failed to built it, cause they store next available built number in the memory. So I need a plugin that can auto reload job's...

How to force team members to comment using eclipse plugin or something else

eclipse,jenkins,eclipse-plugin,coding-style,build-automation
Currently, I am working in a new project and it was difficult for me to understand since there is no comment. I wonder if it is possible to force team members(including me) to add more comments. I would like to automate this ject in jenkins later if possible.

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...

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...

npm install, node-gyp build error on only one of two identical machines

node.js,ubuntu,jenkins,npm
I'm trying to run npm install on an Ubuntu 14.04 VPS but it keeps failing on installing karma. The command npm install is executed from a Jenkins build step but also fails from the command line when I log in as jenkins user. The Jenkins server invokes a deployment through...

How to prevent parallel execution of two downstream jobs triggered from two different upstream jobs

jenkins
I have Job A which triggers two downstream jobs, say Job B and Job C. These two downstream jobs executes in parallel on master node. Job B then triggers another job say job 1 on a slave node and job C triggers job 2 on the same slave node...

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.

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...

how to identify user who created a specific job on jenkins?

jenkins,jobs
Problem In jenkins, I cannot find the job creator for a specific task. Tries I tried looking in the changes log, do not display creation. Looked up in the user profiles and there is no such properties. Been fooling aroung for a while now trying to find it. Also most...

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...

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...

Jenkins Grails plugin does not list lastest versions of Grails

grails,jenkins
When installing a new Grails from Jenkins web UI, a user is given the choice of some versions - up to 2.4.4 and 3.0, but 2.4.5 and 2.5 are missed. How to add 2.4.5 to that list? P.S. Jenkins 1.598, Grails plugin 1.7 (latest)...

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?

Jenkins Linux file access or group issue

linux,jenkins,file-permissions,permission-denied,master-slave
I'm facing a strange file access issue. Linux system is RedHat 5.5 On this machine, when I log in as the given user: deploy_user, I can see that I have valid access to /path/to/the/folder/subfolder/file.txt ls -l /path/to/the/folder shows (this means upto this path I can see contents): 13:50:53 drwxr-x--- 2...

Advantage of Jenkins Master/Slave architecture? [on hold]

jenkins
I am reading about the Jenkins Master/Slave architecture and how to configure it from here and as I am going down the page I am wondering why should I do it, what benefit I can achieve through it. I searched similar questions and reached here but still not convinced about...

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...

Using Click to Deploy and install Jenkins in GCE

jenkins,google-compute-engine,bitnami
Using 'Click to Deploy', I already deployed LAMP stack. Now i want to use 'Click to deploy'and then deploy Jenkins in the same GCE instance(dont want another fresh GCE instance) Is there an option to use 'Click to deploy' for multiple tools or only once per GCE instance? What...

Openshift - trigger Jenkins build on git push

jenkins,openshift
I work with Openshift now and I have a problem. I created an application server with Jenkins and when I push to the master branch of the git repository the Jenkins build is triggered automatically. The point is that the build isn't triggered when I push to another branch (not...

Jenkins - cleanup after job

jenkins,hudson
I have a couple of unit testing / BDD jobs on our Jenkins instance that trigger a bunch of processes as they run. I have multiple Windows slaves, any one of which can run my tests. After the text execution is complete, irrespective of the build status is passed/failed/unstable, I...

Any way to specify the svn revision of externals in a Jenkins job?

svn,jenkins,svn-externals
Suppose I have such svn structure: svn://myhost/repository_main svn://myhost/repository_ext The revision numbers of these two repositories are isolated. Now I have set a svn:externals on svn://myhost/repository_main/foo: svn://myhost/repository_main/foo --> svn://myhost/repository_ext/bar Then in the Jenkins I have a job which uses the svn://myhost/repository_main and I could specify the revision number to update like:...

Customizing email ext plugin in jenkins

jenkins,email-ext,jenkins-cli
I was trying to create a custom message for build fails, i wanted to add the name of the user whose commit break the build, the commit message and a brief summary of the error. Can i write this in the 'Content' section in the configuration page or should i...

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...