Questions tagged [jenkins]

For questions about Jenkins, an open source automation server, and using Jenkins for topics such as building, testing, and deploying software, etc. For questions specifically about Jenkins Plugins use the jenkins-plugins tag.

68 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
4k views

Jenkins error using Junit plugin: Test reports were found but none of them are new. Did LeafNodes run?

I'm trying to get our test reports (generated using google test with the xml output switch) into Jenkins, but keep getting the error message: Test reports were found but none of them are new. Did ...
Mike Knee's user avatar
3 votes
0 answers
46 views

Is there an all-in-one control center software that can be used to manage build and test execution and to visualize test results?

If there are no constraints with regards to other components used in the system at all, do you know a software that can be used as a sort of "cockpit" / control center to visualize test ...
Hunter2's user avatar
  • 31
3 votes
0 answers
2k views

Jenkins Unable to Match Two Identical Strings

I have a config file that's in YAML format, which includes this relevant portion: project: protectedBranches: - master - develop - feature/something In my Jenkinsfile, the YAML file is ...
Argyle's user avatar
  • 1,018
2 votes
0 answers
748 views

Jenkins - how to run pipeline only if no other job is running on agent/master

I am trying to implement a maintenance job for cleaning up caches (e.g. Maven, NPM). In order not to disturb running jobs by deleting the caches the maintenance job should only run, if no other job is ...
Haagy's user avatar
  • 43
2 votes
0 answers
51 views

Jenkins build fails when no commits in the code (ChannelSftp.throwStatusError)

I have built a jenkins pipeline for executing a test on a windows server. Once the automated test report is generated on the windows server, it ships that report to a different server. There are ...
Kasun Wimaladarma's user avatar
2 votes
0 answers
134 views

how to specify query when searching for run in jenkins blueocean rest api

I have some jenkins project, that has multiple pipelines defined. I can easily search for runs for a certain pipeline: $ curl -k --silent "https://<SOME_SERVER>/blue/rest/search/?q=type:run;...
murison's user avatar
  • 121
2 votes
0 answers
334 views

Complete automatic release process (with versioning) on a multibranch pipeline?

We have projects that once in a while need to be released with all the changes already present in the develop branch. Every time we make a new release, we update the code with the new release version ...
José Cabo's user avatar
2 votes
0 answers
119 views

Jenkins declarative pipeline with mvn, releases and versioned artifactory

We have a requirement to support human defined versions (not auto generated) for patch releases. I'm trying to figure out a way to do this in Jenkins. We have: BitBucket, Jenkins, Nexus/JFrog (either)...
Kashyap's user avatar
  • 121
2 votes
0 answers
107 views

In Jenkins, what plugins and/or configurations should I use to promote/redeploy Docker images and Git branches

I have set up a Jenkins job using the multibranch plugin. Via my Jenkinsfile, Jenkins executes the following steps: Build: docker-compose build Test Push Git ref to internal Git repository Tag local ...
EdwardTeach's user avatar
2 votes
1 answer
275 views

Jenkin "unable to find valid certification path to requested target" getting error while installing plugin

We are trying to set up jenkins. When we trying to install plugin getting the below error. We also tried to import the trusted certificate into the JVM directly still getting same error. sun.security....
Jagruti Patil's user avatar
2 votes
2 answers
5k views

Send command to docker image while start in Jenkins file

In scripted Jenkinsfile if I need to send a command to Docker image, I can do like this: docker.image('mysql --default-authentication-plugin=mysql_native_password') How can I do the same in ...
MRashad's user avatar
  • 21
2 votes
0 answers
463 views

Connection refused when CURLing to docker container from within Jenkins pipeline

I have a situation with a CI Pipeline I'm trying to implement using Jenkins and Docker . Inside my pipeline I want to: download a python uwsgi web app, build it in a docker container, run it, then ...
remus2232's user avatar
2 votes
0 answers
347 views

JIRA plugin on jenkins not set the JIRA_ISSUES variable

I have jenkins job for with GitHub Pull Request Builder. In build, I added first step to set the JIRA_ISSUE variable. JIRA: Add related environment variables to build Extracts JIRA information for ...
Nilesh's user avatar
  • 203
2 votes
0 answers
438 views

Using docker cloud from jenkins running on local osx docker

Hopefully someone can help, I've found lots of information online but as I'm brand new to both jenkins and docker, I'm having a hard time sorting out which suggested solutions happen on the what ...
Iain Duncan's user avatar
1 vote
1 answer
8k views

Jenkins checkout GitSCM and git step how does it work internally and why

When I execute my pipeline and I go and see on the actual Jenkins slave, the checked out commit doesn't have latest changes. But the logs and actual files in the workspace on the Jenkins slave running ...
Akshay Hiremath's user avatar
1 vote
1 answer
373 views

Building a pipeline to recognize changes in a terraform template compared to the git commit before and having it apply changes using specified command

Looking to get pointed in the right direction: I am trying to build a pipeline that will recognize changes in a remote terraform template that will recognize changes compared to the previous git ...
SaintLaurent's user avatar
1 vote
1 answer
901 views

Checkout shared library with tag with legacySCm

So trying to checkout shared library by tag. This works perfectly with moderSCM, but for reasons we need to use other way (legacySCM); def lib = library identifier: 'jenkins-shared-library@41', ...
WhoAmI's user avatar
  • 111
1 vote
1 answer
2k views

net.sf.json.JSONException: Invalid JSON String error on jenkins

Warning: API call to create metrics set failed: [Pipeline] echo net.sf.json.JSONException: Invalid JSON String at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143) at net.sf.json....
aymen0406's user avatar
1 vote
1 answer
2k views

Why is parameter not propagated to post-build parameterized build?

I'm trying to apply the guidance I recently read at how to trigger parameterized builds from a different build in Jenkins and https://plugins.jenkins.io/parameterized-trigger/ - but this doesn't seem ...
StoneThrow's user avatar
1 vote
2 answers
3k views

Jenkins connect to Windows 10 agent

I have a Jenkins master on a Linux machine and I would like it to be able to connect to a Windows 10 agent, how do I do that? I can't find much in the official documentation about agents in general, ...
erik's user avatar
  • 111
1 vote
0 answers
856 views

Why does Jenkins' Amazon EC2 Plugin not terminate some VMs when they are idle for X minutes on AWS US-east-1?

| Product | Version | |:-----------|--------:| | EC2 plugin | X | | Jenkins | 2.190.1 | Looking for help troubleshooting an intermittent issue; We run an Ubuntu version of Jenkins on AWS ...
Alex's user avatar
  • 4,512
1 vote
1 answer
940 views

Unable to get value of password parameter into another parameter

In Jenkins pipeline parameter say Branches of type Active Choice Reactive Parameter, I've to auto-populate branch names hence I've following command, which I can execute in parameter's Groovy script - ...
Alpha's user avatar
  • 163
0 votes
0 answers
21 views

Tool for deployment via series of Powershell Scripts

I am responsible for continuing to develop legacy software. The software is run as a service on a handful of servers. For making a new release of a component of the software the following steps are ...
blablablup's user avatar
0 votes
0 answers
6 views

How to collect cumulative report for 32 repos?

We use separate Jenkins jobs to collect unit tests and coverage for each repository. There are 32 such repos. How do we collect cumulative report? Currently we are going into each job and collecting ...
TheDevOpsMonk's user avatar
0 votes
0 answers
22 views

Jenkins loads data from json file as choices of parameter does not work properly

I am completely novice at Jenkins, this post Jenkins Plugin:Extended Choice Parameter from JSON file does work for me. I want to load a list of versions from a json file, which name is input.json, and ...
Mr.Bingo's user avatar
0 votes
0 answers
9 views

Configure Jenkins to build a React App without access to central NPM repository and without Nexus

I need to configure Jenkins to build and deploy a React application. The main problem I have is that I don't have access to the central NPM repository in any way except the development machine. ...
valko's user avatar
  • 1
0 votes
0 answers
8 views

How to make jenkins run pod agent based on label

I have Jenkins runs in k8s cluster, I have configured multiple pod templates so Jenkins uses them for building then deletes the pod agents, also added the build steps in a library using Jenkins-...
Mohammed Ehab's user avatar
0 votes
0 answers
13 views

How to add an existing kubernetes pod as a jenkins node.?

Is there any way to add a existing pod or create a new pod in kubernetes and attach as jenkins node.? We can create dynamic pods using kubernetes plugin using plugin settings and yaml provided in ...
tony's user avatar
  • 1
0 votes
0 answers
20 views

Podman container created but not accessible for many minutes

I'm migrating our Jenkins instance to a podman-based setup. Everything looks fine, except that there's always a lag of around 5 minutes after docker-compose reports that the container has started. ...
dokaspar's user avatar
  • 101
0 votes
0 answers
8 views

How to work with krew in Jenkins?

I'm new to jenkins . I have written a jenkins pipeline to create blockchain network using HLF Operator. I've installed kubectl on the vm and used it as node in jenkins. The kubectl commands and other ...
Haaris Khatri's user avatar
0 votes
1 answer
65 views

Execute Kubernetes commands with Jenkins

I am a beginner to devops and right now I'm learning jenkins. I have a kind cluster on my local machine and jenkins running inside a docker container at http://localhost:8000. I wish to execute the ...
Haaris Khatri's user avatar
0 votes
0 answers
14 views

Strange behavior while listing directories in Jenkinsfile where docker is running as agent

I am running a very basic Jenkinsfile, docker as agent. Below is the Jenkinsfile. pipeline{ agent none stages{ stage('Tomcat version'){ agent{ docker {image ...
rebel_roar's user avatar
0 votes
0 answers
54 views

Jenkins identity file not accessible

I am new to Jenkins and DevOps in general. I am trying to learn to deploy war files onto Tomcat 9.xx running on an amazon EC2 instance. Tomcat is accessible via the browser I have the following ...
Spindoctor's user avatar
0 votes
1 answer
227 views

How to modify a Jenkins pipeline job's property programmatically?

We set up a Jenkins job in multiple folders that has the following "Choice Parameter" property. How can I modify the property programmatically to add more choices? For example, I want to ...
Chris F's user avatar
  • 411
0 votes
0 answers
58 views

Most suitable pipeline storage option for Jenkins/Kubernetes CI setup

I have a quite complicated setup, considering that it's first time setting up such environment. I'm looking for some guidance on how to set it up properly. I've got 7 servers, 2x28 CPU (for 112 ...
Thurisaz's user avatar
0 votes
0 answers
54 views

Jenkinsfile library dynamic retrieval with perforce

It is well documented that a library can be dynamically retrieved with a git repo: library identifier: 'test@master', retriever: modernSCM( [$class: 'GitSCMSource', remote: 'my_repo' ]) ...
user23067390's user avatar
0 votes
0 answers
138 views

Get all modified files with pipeline and Jenkins

I'm trying to get all changed files in repository, by running bash script inside Jenkins pipeline sh '''#!/bin/bash files=($(git whatchanged --name-only --pretty="" origin..HEAD)) ''' But ...
Neb's user avatar
  • 1
0 votes
0 answers
12 views

Is there a way to reference to the root of all jobs (Dashboard) via a variable in Jenkins to use in a path

I am using a "Trigger call/build on other project" build step on my job A where I call job B. Because of the job/folder structure I need to call this job B by traversing up (e.g. ../../...
devunder's user avatar
  • 101
0 votes
0 answers
49 views

How to setup Mac Studio to host multiple Jenkins agents

I am responsible for the administration of a Jenkins and its infrastructure. We have several software projects that rely on specific Xcode versions and with that rely on specific macOS versions. Now I ...
PrkwyDrv's user avatar
0 votes
1 answer
64 views

Queue jenkins job task in azure pipeline won't complete

I have set up an azure devops pipeline with a single task - to queue a jenkins build job. The jenkins job is a parameterised pipeline build. The job queues and runs as expected in Jenkins. I would ...
Jonny's user avatar
  • 1
0 votes
0 answers
19 views

Unable to input jenkins github credentialID through json file

I have a jenkins job that runs "php ./composer.phar install" and installs required php dependencies from a couple of other git repos that are defined in composer.json file. This job is ...
Manohar reddy 's user avatar
0 votes
0 answers
709 views

Sonar analysis successful but not seeing report-task.txt file

I am running sonar analysis on PR jobs using jenkins freesytle project. sonar analysis is running fine, after run it is showing as [INFO] ANALYSIS SUCCESSFUL But in the next line it is throwing WARN:...
rahuls_'s user avatar
0 votes
0 answers
163 views

Everytime the seed job runs all the parameterized jobs generated through it are defaulting to 'build now' instead of 'build with parameters'

Context: I have a seed job using the plugin Jenkins Job DSL. It is checking out a repository in git and generating a jenkins job for each .groovy file by reading all the .groovy files in the ...
Manohar reddy 's user avatar
0 votes
0 answers
126 views

Is it possible "hide" certain branches of a multi-branch pipeline?

I don't want to disable or filter out other branch jobs. I want to use multi-branch pipelines, but only present "master" branch to users. I want to allow only some users to see the other ...
red888's user avatar
  • 251
0 votes
0 answers
32 views

How to use dynamic jenkin parallelism more efficiently?

I have the following code, which is dynamically running the pipeline in parallel. The issue is that the second set (group according to batchSize) is waiting until the first group completes ...
Dipak K Balabantaray's user avatar
0 votes
0 answers
111 views

eks jenkins docker dind to build multi-arch java

Is it possible using EKS 1.26 and running Jenkins inside to utilize docker inside docker DIND and runtime containerd (this part already works) and then to produce multi-arch java images (arm64/amd64) ...
anVzdGFub3RoZXJodW1hbg's user avatar
0 votes
0 answers
30 views

Deploy to external docker swarm

I have a Jenkinsfile in which I build a docker image and push it to an external private registry. If I were to manually update my docker swarm, I would do this: docker use <context> docker ...
user1406177's user avatar
0 votes
0 answers
210 views

Prevent "[Bitbucket] Notifying commit build result" happening during Jenkins pipeline

I use "multibranch with Bitbucket Source" plugin and I have a situation where I need to prevent feature branch from notifying bitbucket, else it influences PR gates and other things. It ...
anVzdGFub3RoZXJodW1hbg's user avatar
0 votes
1 answer
286 views

Deploy A War/Ear To Container Marked build As failure When Deploying To Tomcat 9 Server

When I was Deploying A Sample Application On Tomcat9 I Faced This Issue. This is the Tomact9 Users File where I added credentials do I need to add anything more, Is There Any Configuration Which I ...
Prathamesh Shukla's user avatar
0 votes
1 answer
590 views

Stage Parallelization in Jenkins declarative pipelines

I am trying to get a Jenkins (2.204.2) declarative pipeline to run parallel stages generated into a map on different machines. I am aware it can be done by mixing in the script block and I have done ...
iwantmyhatback's user avatar