Skip to main content

Questions tagged [jenkins-pipeline]

For questions specifically about Jenkins 2.0's pipeline architecture. This includes both declarative and scripted pipelines.

0 votes
0 answers
10 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
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
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
65 views

Post jenkins console output to slack or email

for freestyle job there is a method for console output to share with slack or jenkins for pipeline we don't have one. help here
playwithcode'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
161 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
1 answer
535 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
279 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
1 answer
86 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
1 vote
2 answers
465 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
1 vote
3 answers
347 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
2 votes
1 answer
982 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
1 vote
1 answer
194 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
1 answer
526 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

15 30 50 per page
1
2 3 4 5
17