Skip to main content

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

Error in Angular Build step in Jenkins

I have not been able to get past the Angular build step. I'm getting Resources not found and I don't know if it has to do with angular or something about configuration. I appreciate any help [2024-07-...
Camilo2024's user avatar
0 votes
0 answers
9 views

Intermittent Firefox Installation Failure in Docker CI

I have a docker image to install firefox, that runs as expected locally but fails intermittently on CI. Firefox doesn't get installed, this is what I am doing. FROM node:20 RUN wget -O firefox.tar.bz2 ...
Manav Grover's user avatar
-1 votes
0 answers
21 views

Jenkins Installation error in aws ec2 instance

I am trying to install Jenkins on Amazon Linux instance and getting the error: Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” ...
Siddharam Allagi's user avatar
0 votes
0 answers
11 views

Automating Jenkins Pipeline Creation and Configuration Updates

I have multiple pipelines that I need to update each time the version of my program changes. Is it possible to create Jenkins pipelines (instead of clicking + New Item in UI) or update them (for ...
Mykola Zotko's user avatar
0 votes
0 answers
23 views

Using docker-swarm with Jenkins for deploying agents

I have a cluster which is being used as a docker swarm - 1 manager, and 1 workers. The manager node is a pure manager node, set via docker node update --availability drain The manager has the /usr/...
DevOps's user avatar
  • 1
0 votes
0 answers
36 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
7 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
188 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
10 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
159 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
1 vote
2 answers
74 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
1 answer
518 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
  • 453
0 votes
1 answer
276 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
  • 453
0 votes
0 answers
66 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
85 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
41 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
1 vote
2 answers
462 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
889 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
180 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
152 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
44 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
1 vote
3 answers
343 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
  • 453
0 votes
1 answer
24 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
  • 453
0 votes
1 answer
509 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
1 vote
2 answers
2k 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
1 answer
971 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
5k 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
259 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
71 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
192 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
140 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
275 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
905 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
2k 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
  • 133
0 votes
1 answer
104 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
  • 133
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
  • 133
0 votes
1 answer
358 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
525 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
8k 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
1 answer
2k 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
1 vote
1 answer
3k 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
311 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
758 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
1 answer
6k 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
1 answer
957 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
374 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
1 answer
3k views

Run docker-in-docker container alongside Jenkins agent

I'm looking for a way to run a Docker-in-Docker (dind) container alongside my Jenkins agent nodes using the Jenkins Kubernetes Plugin configured by Jenkins Configuration-as-Code (JCasC). I'm currently ...
Max N.'s user avatar
  • 413
0 votes
3 answers
160 views

Does Jenkins essentially function like a package manager for your software product?

I'm a relatively new IT Ops guy in a software (web) development company. Recently I deployed a virtual machine on OpenStack, because some developer needs it, and then I installed their application (...
Noob_Guy's user avatar
  • 109
0 votes
1 answer
461 views

Jenkins JDK17 Docker still using JDK9?

I installed docker for Jenkins JDK17 docker pull jenkins/jenkins:jdk17 Reason being I run a single node (I know isn't the best practice, but for trying out) and my target application is also a Java ...
MaduKan's user avatar
  • 111
0 votes
1 answer
403 views

Force jenkins job to fail if stage did not run long enough

I am using Jenkins to build an rpm for some custom software. During the build there must be a race condition that only seems to appear when building the RPM, which results in the job finishing ...
Natolio's user avatar
  • 103

1
2 3 4 5
13