Questions tagged [jenkins]

Jenkins is an open source continuous integration tool written in Java, that has packages for Linux, Mac OS X, Windows, FreeBSD and OpenBSD. The project was forked from Hudson.

0
votes
0answers
10 views

I want to Execute My Test Cases according to the Test Case Id not the Test Case Summary

I have integrated the Selenium Code with jenkins to execute the test cases with following steps: https://wiki.jenkins.io/display/JENKINS/Zephyr+For+Jira+Test+Management+Plugin Right now I have to ...
0
votes
1answer
11 views

Does not work break in powershell script with Get-Content tail

I have bat-script, that writes in txt file few lines. set logfile=D:\my_job\out.txt echo wwe >>%logfile% echo wwe >>%logfile% echo wwe >>%logfile% echo wwe >>%logfile% echo ...
0
votes
0answers
6 views

Disable changelog in Jenkins pipeline checkout

I have a Jenkins pipeline that checks out specific commits from several different repos. I would like to disable the calculation of the changeSet (changelog) since the /api/json call to the job takes ...
0
votes
0answers
13 views

java.lang.InterruptedException when I wait for node availability on Jenkins

I have created a method like to be called as myWaitNodeMethod('some name'): def call(String nodeName) { def computer = Jenkins.getInstance().getComputer(nodeName).getNode().toComputer() ...
0
votes
0answers
13 views

Build With Grails

When trying to CI/CD a grails project in jenkins in azure cloud environment, it is said that the grillsw file cannot be executed. When I apply the sudo chmod 755 command and run the jenkins job, the ...
1
vote
0answers
14 views

Maven update component version in all components using it

My project consists of numerous (~100) components, most of them use ~10 core components. When I update a version of a core component I would like to have up-to-date version of it in every component ...
1
vote
1answer
13 views

Jenkins abort downstream job when web button is clicked

As a Jenkins newbie, can you please point me to which is the best way to abort downstream Jenkins job when a user hits Submit button on web? Job could either be in queue or running when user hits '...
0
votes
0answers
10 views

Update app .properties file from jenkins groovy

I am developing an app which consumes credentials/secrets from Jenkins vault. I am getting it via withCredntials in the groovy script. After getting the credentials I need to update the same in my ...
0
votes
0answers
17 views

Dynamically wait for jenkins' sub jobs to finish and set parent job status based on their statuses

I have a groovy post-build script that dynamically calls for a sub jobs based on an input file file.txt: Each line in file.txt is then passed into a new subjob. import hudson.model.* def file = ...
0
votes
1answer
17 views

Xcode signing using Jenkins

I am trying to sign and archive my Unity application with Jenkins. I have the Xcode jenkins plugin installed and everything seems to run well except for a strange problem. During the xcodebuild phase,...
0
votes
0answers
25 views

How to build Jenkins WAR from Source

I am trying to build Jenkins WAR file from GitHub source https://github.com/jenkinsci/jenkins. When I try to build using mvn clean install I am getting the following error: [INFO] Scanning for ...
0
votes
0answers
16 views

Parallel pipeline DSL: Mix between jobs details (downstream) due to parallel

When we are running pipline DSL job sometimes we got cases that in parallel some jobs has wrong details, for example, wrong URLs of the artifcats plug ins, maybe because of the parallel execusion, ...
0
votes
0answers
7 views

Can we get build data like build_url , jenkins_home , jenkins_url, build_time etc via Jenkins build console logs?

Does logs generated by Jenkins console output contain these type of information?
0
votes
0answers
16 views

Jenkins pipeline SCM connect to private Github repo fails

I have a Jenkins pipeline which carries some tasks after some changes are made to the develop branch in the remote private repository. In the SCM section of the pipeline, I added the url to the ...
0
votes
1answer
18 views

Setting up Jenkins for a multi-app android project

Project folder structure .git app_1 app_2 app_3 app_4 I am configuring Jenkins for app_1 android project. settings.gradle file for app_1 looks like the following include ':app', '..:app_2', '..:...
0
votes
1answer
27 views

Practical ways to publish private jvm libraries to share between private gradle / maven projects in 2019

I'd like to refactor some of my recent code into a collection of kotlin multi-platform libraries. I then want to consume these libraries from multiple projects and ideally the build of these projects ...
0
votes
0answers
20 views

Automatic Git LFS Commits/Pushes every week using Jenkins

I am new to DevOps so please be gentle XD My (small) team installs applications (that contain with binaries, config files, text files, xmls, ...) to a lot of servers for our various internal clients. ...
2
votes
0answers
24 views

Jenkins not triggered by github-webhook

I have taken these steps: Check "GitHub project" and set up the project Check "GitHub hook trigger for GITScm polling" Setup connection to private repository with user/password If I build manually, ...
-1
votes
0answers
16 views

Not able to connect Windows installed Jenkins with Docker installed on Windows

My Jenkins and Docker both installed on Windows10. I am trying to set a connection between Jenkins and Docker using Docker Plug-in, But it never connects. I am providing tcp://:2376 but it keep ...
1
vote
1answer
34 views

Where can I find the “managed files” physical files on a Jenkins server?

I am copying files to a new Jenkins server. I can copy the Jobs from the jenkins/jenkins_home/jobs directory. Can I also find and copy the Managed Files from the Jenkins server directly, so I can ...
0
votes
0answers
18 views

Jenkins/Java/Maven job fails on hibersap test

I'm having trouble getting a java/maven project to test correctly in Jenkins, and it's failing when trying to test connections to SAP using hibersap. Here's a snippet of the error: 2019-06-21 13:07:...
0
votes
1answer
18 views

How to configure Junit in Jenkins with Maven

I have a maven project with many Junit tests. It's actually a regression test repository. So now I want to build a Jenkins job to run the regression test automatically when building instead of ...
0
votes
1answer
14 views

How can I chain build pipelines in a blocking fashion?

I am trying to configure a Jenkins pipeline in the following fashion : Build A , B and C non blocking as they don't depend on each other (but block on the fact that A , B and C are still building) ...
1
vote
0answers
7 views

Jenkins proxy is invalid when containing integers

I am unable to set a proxy containing integers in the Jenkins Plugins Proxy. I have tried to set the proxy and the port. Similar Proxy server: proxy.test-1.com Similar Proxy port: 8111 I have also ...
0
votes
1answer
14 views

Retrieve Repository URL field Jenkins

is there a way to call via code the GUI field "Repository URL" in order to use its value on my Jenkins pipeline?
1
vote
1answer
14 views

Jenkins Failing on 'git pull'

I set up a subdomain on my DO droplet which is running Jenkins. I want Jenkins to deploy my project when a new build is pushed to my GitLab master branch. The problem is that I am getting a [email protected]
0
votes
0answers
6 views

unable to execute chrome driver on jenkins using maven [duplicate]

i have installed chrome driver plugin in jenkins but unable to execute the chrome driver MVN Test is Started I am reading the chrome driver from target classes. but am getting the below error. "...
0
votes
1answer
15 views

Jenkins ssh why it shows this error com.jcraft.jsch.JSchException: channel is not opened?

I know I posted a question that was bogging me for days but found a solution for it just 5 minutes after posting so I am posting about this problem that I get ever since 2 hours, anyway, I have a job ...
0
votes
0answers
8 views

How to integrate MS SCORCH with jenkins?

I need to trigger or execute the MS SCORCH Runbook from jenkins job. Is there any plugin available for MS SCORCH in jenkins? suggest me the idea to do this
0
votes
1answer
20 views

Jenkins Kube agent cannot pull from git

I am running Jenkins in Kubernetes (EKS), and can successfully pull git repos when running the jobs on the Jenkins master with the pipeline code gitInfo = checkout([$class: 'GitSCM', ...
0
votes
0answers
6 views

How to deploy any 'specific cvs project' from Jenkins

I have setup my freestyle job in Jenkins using CVS source code. All are working fine. Here I am facing issue if I wish to deploy any particular project to the server. Because, I have a multiple ...
0
votes
0answers
9 views

How to integrate Service Now in jenkins pipeline script?

I have to tried to integrate Service now with jenkins. i have installed the Service Now plugin https://github.com/jenkinsci/service-now-plugin/blob/master/README.md in my environment. I need to get ...
0
votes
0answers
10 views

Skip ssl certificates check for Maven in Jenkins

I am trying to integrate Jenkins maven plugin to pull dependencies from a local nexus server. When the build starts I end up with the following Error sun.security.validator.ValidatorException: PKIX ...
1
vote
1answer
22 views

Gradle - “override” behaviour/properties from build.gradle

I'm not a Gradle expert by any means so please be gentle... I have a Gradle build which I'm trying to run on Jenkins. The build.gradle contains the following: repositories { maven { url "...
-1
votes
0answers
12 views

Keil µVision fails with error level 255 in batch mode

We are running Keil µVision 5.21 in batch mode on our Jenkins server. The builds sporadically fail with an ERRORLEVEL 255. I could not find a description on the official Keil User Guide. It also ...
0
votes
1answer
15 views

Execute Command using `Process` in Jenkins Groovy Pipeline

I am executing a cURL command using sh command with no issue. pulic uploadArtifct (String user, String password, String file, String location) { def cred = "${user}:${password}" def cmd = "...
0
votes
0answers
14 views

TestComplete Jenkins Plugin - TestComplete did not launch it

I tried running my windows Jenkins agent with Local System User and I am facing this error Can someone help me with this please Also, I would like to launch my Jenkins slave via SSH and execute the ...
0
votes
2answers
27 views

How to escape single quotes in a bash script run from Jenkins?

I am trying to escape single quotes in parameters that are passed to a Bash script which is run on Jenkins. I am wondering if there is a way for me to escape these single quotes through Jenkins, or do ...
0
votes
0answers
13 views

Jenkins - This stage has no steps error Blue Ocean

When this script runs, Jenkins reports that this stage has no steps. The lines of errors are the following: Started by user administrator java.lang.NullPointerException Finished: FAILURE This script ...
0
votes
1answer
12 views

How do I set older version of Capistrano as default version/gem system wide?

I'm setting up an environment on a new Ubuntu18.04 server and I need to use Capistrano 3.6.x but when installing using apt-get I continue to pull 3.11.x. I know I can create gem files for individual ...
0
votes
1answer
13 views

How to exclude directory and files from NuGet package built with Octopack via Jenkins?

I have a windows service that I need to pack into a nuget package with OctoPack, but I have to exclude a directory called "Config" and a few other config files (these are instance specific and this ...
0
votes
0answers
3 views

Jenkins s3 plugin with EC2 attached credentials

I'm using jenkins with the s3 plugin, adding a post-build step to copy files to an s3 bucket. How do I get this to work if jenkins is running on an EC2 instance that has the s3 permissions attached ...
1
vote
0answers
7 views

Post commit deliver hook for RTC

I have a working Jenkins setup that can pull source code from RTC (Jazz server) and build etc. I can run this Jenkins job on demand or schedule to run at a random interval. However, now I am exploring ...
0
votes
0answers
26 views

Build failure while trying to use docker-compose build step

I am trying to execute my selenium test on Jenkins node (Ubuntu) which has docker already installed. I added docker-compose build step plugin to my Jenkins project. When i try to build the project, I ...
0
votes
0answers
13 views

Groovy Shell is truncated in Jenkins pipeline script

I have a find command which I need to run in my Jenkins groovy script but the command is getting truncated when it runs in the pipeline Actual command: dir ("${Hostname}") { sh 'find . -path ./Code/...
0
votes
0answers
21 views

Jenkins - How to run - docker system prune - in the pipeline

This is my Jenkinsfile for building docker image and pushing it to dockerhub. Everything works just great. I would like to clean up the untagged images after the build process. Currently I do docker ...
0
votes
0answers
11 views

Is there a way for Jenkins to switch pipeline context?

I ran into an issue where I have a single Jenkins Executor on Master Node. (This is a Staging env in Docker). I would like to create a Pipeline that kicks a different pipeline depending on BitBucket ...
0
votes
0answers
10 views

Running YAML code in Jenkins Pipeline for Environment Provisioning

My company's tool stack for running a CI/CD pipeline include the following tools: Jenkins - Pipeline orchestration IBM UrbanCode Deploy (UCD) v6.2.6 - Application deployments IBM UrbanCode Deploy ...
0
votes
1answer
16 views

Escaping double quote in Jenkins pipeline

I am trying to create tag in a Jenkinsfile. I've tried the following combinations: Attempt one sh "git tag -a ${params.Version} -m \"${params.Message}\" ${hash} -f" Result: tag tag -a 1.0.1 -m ...
0
votes
0answers
12 views

Add Build Step is not working in Jenkins for any of the option like “Execute Shell” or “Invoke Ant”

While configuring a job in Jenkins "Add Build Step" is not working for any of the option like "Execute Shell" or "Invoke Ant" Tried this step in all browsers like chrome and firefox and IE but got ...