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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 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
0 answers
14 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
1 answer
14 views

QA instability due to lack of stable UAT/staging environment

Our testing teams are facing extensive downtime due to testing in a shared QA environment. When our front end teams perform end to end testing, their test (QA) environment points to the back end ...
Half_Duplex's user avatar
0 votes
0 answers
8 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
1 vote
2 answers
99 views

How To Convert Jenkins String Parameter To Terraform Map Variable? (Invalid number literal)

Edit (8/16/2023): I figured it out! I'm trying to pass string parameter(s) to a Terraform map variable, but receiving error "Invalid number literal". Jenkinsfile: pipeline { agent any ...
Mark Matlock's user avatar
0 votes
0 answers
145 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
35 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
14 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
  • 243
1 vote
1 answer
34 views

What should I learn next as a devops beginner? [closed]

I'm working as a devops engineer in a big tech company (local). The technologies used here are nginx, linux, sql, redis, docker, glassfish and payara, kubernetes, tomcat, gitlab, jenkins etc. I've ...
zeeshanseikh's user avatar
0 votes
0 answers
24 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
50 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
1 vote
1 answer
64 views

How can I use a pipeline Jenkins shared library to implement encapsulation, inheritance, and polymorphism?

I'm trying to implement the Builder design pattern in a Jenkins pipeline shared library. Say I have the following file structure and pseudo-code (to only illustrate the concept I'm after) src/com/...
Chris F's user avatar
  • 384
0 votes
1 answer
15 views

In Jenkins, when creating a Windows build node, how is its "Path" assigned?

Jenkins v2.375.1 I created a Windows build node and I did a "Launch agent via SSH" to launch it, and it's now online. When I go to its "System Information" page, I see a "Path&...
Chris F's user avatar
  • 384
0 votes
1 answer
139 views

Is there a way to increase Rate limits on Azure DevOps?

We were using an on premise Jenkins against an on premise GitBlit. This worked fine. Last week we migrated from GitBlit to Azure DevOps. Our Jenkins Jobs now run with the PAT of a 'fake' Azure Account ...
Lieven Cardoen's user avatar
0 votes
0 answers
19 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
1 vote
2 answers
487 views

How to get Docker container stdout in Jenkins logs?

(Moved this question from Stack Overflow after getting no traction there; perhaps I'll have more luck here by getting consideration by more DevOps-specific experts) As part of my Jenkins pipeline, I ...
StoneThrow's user avatar
1 vote
1 answer
251 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
  • 33
2 votes
2 answers
967 views

Jenkins try-catch the actual error instead of hudson.AbortException

how do I get the actual exception of a failed pipeline step/plugin? I have the following pipeline code try { checkout( scm: [ ... ] ) } catch (error) { echo error.getClass() ...
Haagy's user avatar
  • 33
1 vote
0 answers
89 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
2 votes
0 answers
32 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
1 vote
1 answer
116 views

Plugin for Jenkins truncates Terraform Plan output

The Blue Ocean plugin for Jenkins truncates the output of a Terraform plan at around 1700 lines, and shows a button "Show Complete Log" for the full thing. When I open the full log, ...
Heitor Morgado's user avatar
2 votes
0 answers
93 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
0 votes
0 answers
187 views

Select All Button for Jenkins Extended Choice Parameter Bootstrap Table

I am using Jenkins with import net.sf.json.JSONObjectwith extendedchoice param to render some bootstrap table, does anyone know how to achieve select all button for checkboxes in addition to the ...
anVzdGFub3RoZXJodW1hbg's user avatar
0 votes
1 answer
120 views

Using docker-swarm with Jenkins

I have a cluster which is being used as a docker swarm - 1 manager, and 4 workers. The manager node is a pure manager node, set via docker node update --availability drain <manager-id> The ...
Ufder's user avatar
  • 101
0 votes
0 answers
247 views

Unable to install Jenkins plugin via ansible

I've been trying to use ansible to install Jenkins and then once Jenkins has been installed, use the jenkins_plugin module to install the build-pipeline-plugin into it. Here's my code (also hosted on ...
AjB's user avatar
  • 103
0 votes
0 answers
71 views

How to calculate Jenkins Job increase in build time through Prometheus query

I extract statistics from Jenkins with the Prometheus Metrics plugin. I have created a query in PromQL to check if a Jenkins job builds time has increased by 50% from the average successful build time:...
Thanos Mourtzoukos's user avatar
0 votes
0 answers
78 views

Whats the most reliable away to connect a jenkins slave machine to AWS VPC

I currently have a mac mini thats connected to a corporate network. This mac mini acts as a jenkins slave for our main jenkins instance. The main jenkins instance is an EC2 instance on our AWS. The ...
dubbeat's user avatar
  • 101
0 votes
1 answer
265 views

Jenkins restart without interrupting currently running jobs

There has a chance to restart Jenkins with stops the job or once job is completed. But is there any command or process to restart Jenkins without interrupt running job.
yeswanth kumar's user avatar
0 votes
1 answer
570 views

Issue (401 unauthorized) adding kubernetes cluster to existing Jenkins server

I want to add a kubernetes cluster to an existing jenkins server (and migrate jobs from docker to kubernetes using named agents). I set up the kubernetes cluster and added a serviceaccount like for a ...
JoSSte's user avatar
  • 125
0 votes
0 answers
339 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
0 votes
1 answer
36 views

Kubernetes internal network and addresses not working for all internal names for same pod/service

I am setting up a k8s cluster using k3s. Currently I have a Jenkins pod running, set up according to this guide. I have run into an issue setting up the kubernetes cluster for Jenkins workers I can't ...
JoSSte's user avatar
  • 125
1 vote
1 answer
1k views

Resolving _class not in classpath_ error without doing it manually in a k8s Jenkins instance

I have installed a k8s cluster (v1.25.4+k3s1) and I have deployed a jenkins image to that cluster (using this guide) which means that I have the following installed: Name Version Jenkins v2.375.1 ...
JoSSte's user avatar
  • 125
0 votes
1 answer
114 views

Is it possible to assign a jenkins pipeline to a variable and run in groovy script?

I have a groovy script that defines a pipeline. The pipeline has several stages. I would like to assign that pipeline definition into a variable and run it later in the same groovy script. Is it ...
leopoodle's user avatar
  • 101
0 votes
1 answer
291 views

Jenkins configure cloud not working with Amazon EC2 Credentials

I am new to AWS and Jenkins. I am trying to connect an ec2 instance that has Jenkins installed to the AWS cloud plugin but for some reason, I am unsure why i am getting the following issue ' Failed ...
lostForAWHile's user avatar
2 votes
1 answer
204 views

Passing Gradle credentials into Jenkins `dockerfile`agent?

I am looking at getting a newly provisioned Jenkins to run an existing dockerfile which does a gradle build and produces a runtime image which is then to be pushed to our internal docker repository. I ...
user18619318's user avatar
1 vote
1 answer
3k views

How to escape dollarsign in groovy shell command?

I'm making a declarative Jenkins pipeline which has a for loop to iterate over the output of a bash command. In that command it is necessary to use bash arguments e.g. "$1" for first ...
kotezbuzzi's user avatar
0 votes
0 answers
698 views

Jenkins on Windows problems with plugin updates "unable to find valid certification path to requested target"

We have Jenkins running on a Windows machine behind a company proxy. I am getting a strange behavior/error when using diffrent kind of users and try to update plugins. The jenkins update site has a ...
Moone's user avatar
  • 1
0 votes
0 answers
146 views

Automated security scanning in Jenkins during pull request using NMAP

I am trying to create an automated Jenkins Pipeline in which when a user tries to do a pull request (merge unto main branch of a GitHub repository) it will do automatic scanning of open ports using ...
Johnny's user avatar
  • 1
0 votes
1 answer
971 views

How to decrypt Jenkins password?

In my secrets folder I have these files -rw-r--r-- 1 root root 272 Oct 2 11:07 hudson.console.AnnotatedLargeText.consoleAnnotator -rw-r--r-- 1 root root 48 Sep 23 11:40 hudson.console....
MikiBelavista's user avatar
0 votes
0 answers
187 views

Single jenkinsfile for multiple target environment

I use Jenkins 2.376. Beside feature branches I have 3 main branch in GIT : test, stage, prod and 3 JOBs for deployment of these main branches. I want to have single identical Jenkinsfile in Git for ...
SmokingTurtle's user avatar
1 vote
1 answer
2k views

How to override global "environment {}" Jenkins Variables in a stage?

I'm trying to set up an automated Jenkins pipeline for the Development & Staging branches within our Git repository. I have most of the pipeline working. But I do not know how to override globally ...
ThatTechGuy's user avatar
0 votes
1 answer
186 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
420 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
0 votes
0 answers
171 views

How to add kubelogin in jenkins?

I am getting the following errors while trying to deploy a project on kyma using jenkins pipeline- exec: executable kubectl-oidc_login not found It looks like you are trying to use a client-go ...
avm's user avatar
  • 109
0 votes
1 answer
3k views

Running this groovy jenkins script output this error "WorkflowScript: 17: expecting '}', found ':' @ line 17, column 11"

#!groovy env.BEARER_TOKEN = "uuuuuuuuuu" node { publishModule() } def publishModule() { stage('Deploy Modules') { } } def buildPayload() { def payload = { "data&...
green_car's user avatar
0 votes
0 answers
59 views

jenkins nlb termination with ingress-nginx

September 2022 I still can't terminate properly jenkins on nlb with ingress-nginx, I am getting redirected to http only possible scenario to make it working beacuse of x-forwared proto, is there any ...
anVzdGFub3RoZXJodW1hbg's user avatar
0 votes
0 answers
69 views

Jenkins Kubernetes Maven Artifactory Sonar Cache Utilization and Improvement

I have a setup where I use Jenkins Artifactory plugin followed by Sonarqube plugin. I run maven twice one with install and one just with sonar:sonar. The idea is that I want to clearly isolate both ...
anVzdGFub3RoZXJodW1hbg's user avatar
0 votes
1 answer
657 views

In jenkins how to restrict users to select first default element with other options in extended choice parameter

I have a jenkins job with multi select extended choice parameter. There are list of elements in a parameter. So, my requirement is I want to allow users to select multiple parameters excluding first ...
Jenkins-Learner's user avatar
2 votes
0 answers
232 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
0 votes
0 answers
34 views

How are Pull Request Builds executed?

I recently came across a PR build which for some reason was only checking if code merge is possible and was not really building on merged code. I always had an understanding that the PR build should ...
dev2d's user avatar
  • 151

1
2 3 4 5
14