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.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
239 views

Connect external Jenkins Master to GKE with Kubernetes plugin

I find the documentation at https://github.com/jenkinsci/kubernetes-plugin quite unclear when it comes to step by step configuration of external Jenkins master. What are the exact steps that need to ...
3
votes
0answers
2k 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 ...
2
votes
0answers
29 views

How to run a container from within another container while also mounting a volume from the first container?

I'm running a build in Jenkins which is running inside Kubernetes. When the job starts, a container starts in the cluster and the build runs inside it. A step in the build requires building an RPM ...
2
votes
0answers
362 views

Passing parameters of extendedChoice type to Jenkins Pipeline via jenkins-cli.jar

I have the following declarative pipeline. It defines checkbox multi-choice parameter: pipeline { agent any options { ansiColor('xterm') } parameters { ...
2
votes
1answer
74 views

Commit messages from Submodules to Jenkins Change Log

I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the ...
2
votes
0answers
287 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 ...
2
votes
0answers
317 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 ...
1
vote
0answers
10 views

How to add multiple run in parallelStagesMap in declarative pipeline?

def jobs = [ [ "name" : "LegacyUnitTests", "runFolder" : "recipes", "run" : { -> sh "docker-compose -f docker-...
1
vote
0answers
22 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 ...
1
vote
0answers
129 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 ...
1
vote
0answers
42 views

How does one build a build pipeline with versioned build artifacts?

I'm not sure quite how to phrase this question. I'd like to learn either by answer here or sharing a reference to read from: How do I build a pipeline with versioned build artifact? I've inherited an ...
1
vote
0answers
18 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 ...
1
vote
0answers
13 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
27 views

How I can trigger CRON with parameters without using following plugin “parameterized-scheduler-plugin”

Actually, I do not have Jenkins admin right and instead of requesting admin to install "parameterized-scheduler-plugin", are there any other plugin-less alternatives.
1
vote
1answer
491 views

403 forbidden error on calling jenkins post api from python script

I am trying to build a python script that will build jobs externally but when I am executing it, throws 403 forbidden error for build jobs call other get APIs are working fine. Below is the python ...
1
vote
2answers
475 views

Jenkins trigger build if shared library changes

I have Jenkins Pipeline job define in my git repo as. // File: deployment/jenkinsfiles/staging/Merge @Library("my_shared_lib") _ import com.company.myteam.Constants pipeline { agent { label "...
1
vote
0answers
157 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 ...
1
vote
1answer
201 views

Is there a Jenkins plugin for downloading source code?

Although our own sources are checked out from a revision-control systems, the third-party software we depend on needs to be downloaded from their respective sites. The plugin I'm looking for would ...
1
vote
0answers
271 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 ...
1
vote
1answer
181 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 - ...
0
votes
0answers
9 views

Parametrized remote trigger with multiline string Jenkins

I have a Jenkins job which triggers a remote job. Both the jobs have a multiline string as paramter. I am not able to pass the parameter to the remote job. Only the first line of my input string is ...
0
votes
1answer
9 views

Jenkins - Active Choice DynamicReferenceParameter not returning list

I have been trying unsuccessfully to get DynamicReferenceParameter of the Active Choice plugin to show previously selected values as list, however it either shows them on one line or it treats each ...
0
votes
1answer
19 views

I can't find the jenkins password to unlock the website

I'm trying to install Jenkins, but, in one part I need to unlock Jenkins, and I didn't find the file with the password, it doesn't exist on my pc. I tried to run this command on my terminal (Windows): ...
0
votes
0answers
20 views

Jenkins and Kubernetes Design Involving GitHub

I am new to DevOps and am currently designing a CI/CD pipeline that involves integrating GitHub webhooks with Jenkins in a Kubernetes environment, and I would like to see whether this is feasible or ...
0
votes
0answers
22 views

Docker | Multiple ways to build Docker Image

I'm just getting into DevOps, trying to learn as I go. One thing I don't understand is this. When I was trying to automate my docker image build, I noticed that there are multiple ways to accomplish ...
0
votes
1answer
19 views

Jenkinsfile credential as paramter unable to use it

I am trying to use the credentials parameter for a git clone. But i am getting the error that the variables are not found Param definition credentials (credentialType: 'Username with password', ...
0
votes
0answers
17 views

Use Jenkins without any slaves created (SSH on target machines to launch commands)

What do you think about having one master and no slave configured on Jenkins but having an SSH connection to remote machines initialized in the jobs directly that allow the execution of the build and ...
0
votes
0answers
11 views

Docker workflow plugin returns empty error message when starting a container

I am working with a number of Raspberry Pis to which some microcontroller-equipped hardware is connected. This hardware is being tested remotely and automated (using Jenkins with the Docker Pipeline ...
0
votes
0answers
15 views

Can you limit the scope of the “post” block in Jenkins to the stage result status?

I am trying to execute a script based on the result of a particular stage in a Jenkins declarative pipeline, but the post block seems to be dependent on the status of the entire pipeline. Any way of ...
0
votes
0answers
9 views

Why maven build slows in docker container when local maven repo mapped to container's /usr/share/?

We run Jenkins pipeline on docker container. During the run, we mount host's .m2 to container's with - -v $HOME/.m2:/usr/share/.m2 When host's .m2 mounted into container's /usr/share/.m2 maven build ...
0
votes
0answers
55 views

Jenkinsfile pipeline ecr docker tag parameter

I've been trying to get a solution for a docker image tag drop down parameter in a Jenkinsfile for a deploy pipeline. So basically, pipeline as code, with choose your own image tag to deploy this ...
0
votes
0answers
94 views

How to configure Bitbucket Build Status Notifier Jenkins plugin to connect to BitBucket Cloud for Jenkins Pipeline projects

I would like to know how to configure Bitbucket Build Status Notifier Jenkins plugin to connect to BitBucket Cloud for Pipeline projects. Basic instructions are here, on a plugin homepage: https://...
0
votes
0answers
88 views

Jenkins agent fails to connect to docker socket in latest helm chart

Preface I have been using older version of Jenkins on Kubernetes with the Kubernetes plug spinning up Jenkins Agents deployed by the official Helm charts. I've had no issues with them. In fact I ...
0
votes
0answers
31 views

How to build through Jenkins on merge of two branches, if there is CI Skip enabled and both branches have ci skip commit message?

I am trying to implement jenkins ci skip build. I tried SCM Skip plugin https://plugins.jenkins.io/scmskip/ It worked for me , whenever there was a regex matching .[ci skip].. Unfortunately, This ...
0
votes
1answer
49 views

Jenkins Slaves cannot connect to the Master Jenkins

I switched the Jenkins to using https on port 8080 . After a restart of the Jenkins,the slaves cannot reconnect. I changed only Jenkins location from Configure System -> Jenkins Location -> ...
0
votes
2answers
63 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, ...
0
votes
0answers
27 views

Permissions on jenkins server

I have a couple of users on jenkins server - ec2-user and jenkins I ssh on the jenkins box as ec2-user For some reasons, we have dependencies on jenkins accessing a file in /home/ec2-user/.local/lib/...
0
votes
0answers
59 views

How to use jenkins build parameter in web ui?

I have a ready jenkins build parameters , I want to use/link the same in webpage UI (that to be created). Need help on - what are various possible way to achieve this ? any document , link would be ...
0
votes
0answers
15 views

Setting up PR Build in Jenkins when raised from stash

Setting up a PR request to have a build run in Jenkins. Our source repository is Stash. Essentially, the PR will be from any branch (each developer will create their own branches) to develop I have ...
0
votes
0answers
37 views

Jenkins Declarative Pipeline not running

I have just upgraded the jenkins version and wrote my first Jenkins declarative plugin. Following is the pipeline definition pipeline { agent any stages{ stage('Welcome'){ ...
0
votes
0answers
20 views

How can I find out the latest stable Jenkins version via API call?

I'm trying to write a script that creates a Docker image from a Jenkins image, that is, the first line of my Dockerfile is... FROM jenkins/jenkins:2.249.3 However I wanna be smart and write a script ...
0
votes
0answers
13 views

Need advice to setting up a Jenkins blue/green infrastructure, from a high level?

I'm trying to use Terraform to setup a blue/green Jenkins deployment. The idea is to setup a green infrastructure for testing, and when that is good, promote it as the blue node to be used for ...
0
votes
0answers
86 views

getting error in Jenkinsfile - command not found

I'm trying to setup my company's first CI/CD pipeline, to build & deploy docker containers in gke, it has been a a great learning curve so far, however I'm stuck with error in Jenkinsfile /var/lib/...
0
votes
1answer
2k views

Ansible playbook error: “Connection timed out during banner exchange”

I am trying to connect to my bastion host and then tunnel that ssh connection to connect to a jenkins host but keep running into the connection timed out error. The error message in full is: fatal: [&...
0
votes
0answers
12 views

Maven looks up for artifact in libs-snapshot repo instead of the specified repo

I have an aggregator POM file and two Maven projects: sample-project-runner-parent - This is the Parent Artifact a) sample-project-runner-model - The first child module b) sample-project-runner - The ...
0
votes
0answers
18 views

What is the best way to integrate a open source secrets detector into a deployment pipeline and Github?

There are a number of open source secrets detectors that run via CLI. (Gitrob, trufflehog) However, is there a good way to integrate these that they run on a per PR basis? The use case here would be ...
0
votes
0answers
28 views

Jenkins - Run Email Action before Post Build Task

In my Jenkins project, I take a snapshot of the SQL server using a post build script/task: But that part takes a while and is irrelevant to the QA people who are just interested in installing the ...
0
votes
1answer
237 views

Using Jenkins declarative when conditions in scripted pipelines

Jenkins declarative pipelines offer very convenient when directive with conditions like changeset. Is is possible the this changeset and other when conditions in a scripted pipeline?
0
votes
2answers
55 views

Jenkins: Re-use repository with reference option and do changes on it

I would like to setup a Jenkins cluster where the slaves are building an Android ROM with some parameters like branch (e.g. lineage-16.0) and some optional patches. The whole repository will consume ...