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.

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
3k 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
45 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
46 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
127 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
307 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
114 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
105 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
206 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
  • 31
2 votes
0 answers
459 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
346 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
436 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
0 answers
612 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
  • 11
1 vote
0 answers
93 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
  • 253
1 vote
0 answers
185 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
1 vote
0 answers
446 views

Running Jenkins controller and agent with docker compose - is it possible?

The Jenkins controller and Jenkins agent are supposedly able to be run in Docker; Under Jenkins' official installation instructions, Docker is the first option listed: User Handbook -> Installing ...
KernelDeimos's user avatar
1 vote
0 answers
300 views

API calls w/ global credentials in Jenkins active choice

Is it possible to use the Jenkins credentials set in the global credentials in the active choice plugin groovy script? I'm trying to make an api call that returns a list and display that as a choices ...
caio nostre's user avatar
1 vote
1 answer
7k 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
0 answers
96 views

Access commit webhook message in Jenkins pipeline

I've got a Jenkins server integrated with a GitHub Organization through a GitHub App and the Jenkins GitHub Branch Source plugin, and it is working fine and triggering builds on commits as intended. ...
Johan Karlberg's user avatar
1 vote
0 answers
198 views

Add Cache-control: no-cache,no-store metadata to object uploaded via S3 Publisher plugin in Jenkins

So i have a jenkins job that builds a project and then uploads specific files to an S3 bucket. I've set up the S3 Publisher plugin shown in the attached image, but the metadata is still not being ...
BUCKSHOT's user avatar
1 vote
1 answer
354 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
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
0 answers
162 views

Jenkins - restrict which nodes can be selected by user when creating jobs (already tried Project-based Matrix Authorization Strategy + folder plugins)

I need to securize nodes of Jenkins and allow them to be used only by one user. I read existing question : "Jenkins - restrict which nodes can be selected by user when creating jobs" but ...
iostrym's user avatar
  • 11
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
0 answers
267 views

How to add multiple run in parallelStagesMap in declarative pipeline?

def jobs = [ [ "name" : "LegacyUnitTests", "runFolder" : "recipes", "run" : { -> sh "docker-compose -f docker-...
ADHITHYA SRINIVASAN's user avatar
1 vote
0 answers
104 views

Parallel execution of same job with different configuration- pipeline jenkinsfile script path is updated incorrect

I have a jenkins job A and i have 5 tests (each triggering job A with updation of different jenkinsfile script path as Before Each test) executing in parallel Test1 with pipeline-jenkinfile-1 Test2 ...
Bustaq's user avatar
  • 111
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
912 views

How to send/get parsed console output file in jenkins?

I have used log parser plug-in to find out the errors and warning and able to see it into console log(parsed) section over Jenkins. Now I have to send those parsed log file to recipient user. To send ...
Bhargav Lalaji's user avatar
1 vote
0 answers
80 views

How can I configure Jenkins pull request builder to run tests on Github dependabot PRs

Our Github project repository is configured to receive security PRs from dependabot, and we get them periodically. We are using Jenkins with Build Triggers so that when a user comments /test in a PR ...
Geoff Maddock's user avatar
1 vote
0 answers
39 views

Allow specific AWS permissions(Lambda, S3) / roles to specific Jenkins Jobs within same AWS account

We have one AWS account in which an Ec2 instance is running where Jenkins is installed, and we have attached an IAM role to it, with s3 access permission. We have Jenkins jobs which needed aws ...
susil95's user avatar
  • 111
1 vote
0 answers
42 views

is it possible to see jenkins jdk install progress

I am config jdk 11 in jenknins 2.235.3 running in kubernetes v1.16 cluster, I just want to know if it has a way to see the jdk install progress? so I could know if the config is correct or other ...
Dolphin's user avatar
  • 131
1 vote
0 answers
823 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
901 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
  • 173
0 votes
0 answers
6 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
24 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
11 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
36 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
136 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
52 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
52 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
82 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
9 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
39 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
59 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
141 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
30 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
103 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
29 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