50,608 questions
0
votes
1
answer
54
views
Groovy script not working in Jenkins job, but it does on script console
I have the following Groovy/pipeline script I use as an "Active Choice Parameter." I run it in a Groovy sandbox or as an approved script. It gets a job's successful builds' display names and ...
0
votes
1
answer
77
views
docker container not using passed-in JAVA_OPTS="..."?
Docker version 25.0.13, build 0bab007 on Amazon Linux image
I run the following script to start Jenkins as a Docker container
JENKINS_HOME=/home/jenkins
JENKINS_VERSION=2.528.3
docker run --restart=...
1
vote
1
answer
34
views
in jenkins how create a pod template with the "Raw YAML for the Pod" filled througth manifest, with helm
in jenkins I want to create a pod template with the "Raw YAML for the Pod" filled througth manifest, with helm at the moment when Jenkins is created
I have a jenkins-controller.yaml where ...
0
votes
0
answers
50
views
Error in credential substitution in downstream job when upstream job is strigged by timer in Jenkins
I am using Jenkins version 2.528.3 with Parameterized Trigger plugin (Version873.v8b_e37dd8418f).
I have a job (free style) (JOB A) which is parameterized to accept credential parameter of type secret ...
0
votes
0
answers
79
views
How to create an atomic unabortable step in jenkins
I have a Jenkins pipeline with a critical stage that runs my custom .NET CLI performing important tasks. I want this stage to be fully atomic, meaning that if someone tries to abort the build while ...
Tooling
0
votes
1
replies
58
views
Аllow users from specific Google Groups to log in to Jenkins
I’m using the Google Login Plugin in Jenkins, and I want to allow access only to users who belong to certain Google Groups.
My setup:
I have enabled the Google Directory API (Admin SDK → Directory ...
0
votes
0
answers
40
views
Jenkins new version won't make string variable be read by dimensionscm plugin
We have a very old Jenkins version (1.577) on windows server that we upgrade to 2.516.3 version successfully more or less. The most problematic issue is related to a freestyle job: the job is a build ...
0
votes
0
answers
26
views
Active choices - use html text values in pipeline
I want to do the following (I’m testing with the Active Choices plugin):
Have a dropdown with three possible values (one, two, three) – Active Choices Parameter
Depending on the selection, display ...
Best practices
0
votes
0
replies
44
views
Gitlab show result from multiple pipelines on Merge Request page
We aare developing new features for our code which we use merge requests in Gitlab to a release branch where all features are collected. When doing the actual release we do a MR from release branch to ...
0
votes
0
answers
63
views
Accessing to two or more Gitlab Projects in the same Jenkins pipeline file
We have the following Jenkins pipeline script.
pipeline {
agent any
stages {
stage('Run in Sandbox'){
steps {
dir('Pot') {
checkout ...
-1
votes
0
answers
72
views
Generate OWASP Dependency Report as HTML and JSON inside Jenkins pipeline using Kotlin pom.xml profile
I want to generate artifacts of type HTML and JSON for Jenkins.
I now only generate HTML reports.
My end goal is to check the JSON report for any issues and make the build UNSTABLE if there are any ...
0
votes
1
answer
60
views
How to reuse method in loaded script from main script in Jenkins without using libraries
I have a main Groovy file with defined methods, and I've loaded a second Groovy script.
main-script.groovy
node('Node1'){
Method1()
Method2()
def loadedSecondScript = load('./second-...
1
vote
1
answer
65
views
frontend-maven-plugin yarn:build Process exited with an error: 1
When trying to build in jenkins, running inside a docker container, yarn build fails with:
21:49:00 [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:yarn (yarn build) on ...
0
votes
0
answers
33
views
Is it possible to run multiple Jenkins branch indexing processes at once?
Jenkins runs "branch indexing" jobs to trigger multi-branch pipeline jobs automatically; for instance a webhook connected to source control will cause a branch indexing job to scan for newly ...
0
votes
1
answer
268
views
npm ci hangs in esbuild postinstall script after upgrading to Angular 20
After upgrading from Angular 17 to Angular 20, my build script on Jenkins hangs on the npm ci command. I changed the script to npm ci --loglevel verbose instead, and noticed that the last output ...