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
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
9 views

Pipeline is failing after Jenkins upgrade from 2.387.2 to 2.440.1 [closed]

Jenkins setup: 1] Jenkins 2.387.2 , java 11, Jenkins Pipeline library: GitHub - griddynamics/mpl: [IT-36925] Jenkins Shared Modular Pipeline Library 1(but we have cloned it in our own repo.) ...
minato's user avatar
  • 1
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
-2 votes
0 answers
30 views

Error while launching the EC2 with Jenkins node

I am learning Jenkins and when I am trying to launch the EC2 via the Jenkins cloud node it shows an error. I have enabled port 8080 and not sure what I can do. Amazon EC2 plugins are also downloaded.
Deepika's user avatar
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
1 vote
2 answers
72 views

Need to understand the career path for DevOps

I am a frontend developer, planning to gain hands on experience in DevOps. However, I'm not sure of if only DevOps or DevSecOps. Recently I tried learning Jenkins while last year took an Udemy course ...
meDeepakJain's user avatar
0 votes
0 answers
53 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
1 answer
157 views

In Jenkins, how can I disable "Discard old builds" option via pipeline?

I have several jobs where I want to disable the option shown below in the jobs' configuration page. How can I do it via pipeline?
Chris F's user avatar
  • 411
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
1 answer
30 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
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
1 vote
2 answers
368 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
708 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
1 vote
1 answer
42 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
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
1 vote
3 answers
236 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
  • 411
0 votes
1 answer
21 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
  • 411
0 votes
1 answer
373 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
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
1 vote
2 answers
1k 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
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
2 answers
3k 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
  • 43
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
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
1 vote
1 answer
169 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
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
0 votes
1 answer
207 views

Using docker-swarm with Jenkins [duplicate]

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
1 answer
721 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
1k 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
  • 135
0 votes
1 answer
68 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
  • 135
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
  • 135
0 votes
1 answer
293 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
2 votes
1 answer
412 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
2 votes
1 answer
6k 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

1
2 3 4 5
14