50,639 questions
Tooling
0
votes
1
replies
33
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
28
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
22
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
31
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
45
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
65
views
Jenkins Docker Node error 400 Bad Request [closed]
My jenkins container start command:
docker run --name jenkins --restart=on-failure --detach \
--network jenkins --env DOCKER_HOST=tcp://docker:2376 \
--env DOCKER_CERT_PATH=/certs/client --env ...
0
votes
0
answers
55
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
51
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
votes
0
answers
47
views
Jenkins is unable to locate the executable file after extracting the Nexus NuGet package
I attempted to execute the following command in a Jenkins batch script to run the executable named "GitFetcher.Exe," which is located within the tools directory of "IB.SO.AutoUtility.&...
1
vote
1
answer
50
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
24
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
157
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 ...
1
vote
1
answer
65
views
Jenkins throws an error when executing the sh command expr multiply with zero
Simple code
node('master'){
sh'expr 2 \\* 10'
sh'expr 0 \\* 10'
}
After executing it, Jenkins returns an error.
[Pipeline] {
[Pipeline] sh
+ expr 2 * 10
20
[Pipeline] sh
+ expr 0 * 10
...
0
votes
0
answers
42
views
java.lang.ClassNotFoundException: org.jenkinsci.plugins.ssegateway.SubscriptionConfigQueue$SubscriptionConfig
I installed latest Jenkins updates and now I get this error:
Apr 04 21:59:13 --jenkins jenkins[85214]: 2025-04-04 21:59:13.666+0000 [id=19829] INFO jenkins.model.Jenkins$17#onAttained: ...
1
vote
1
answer
52
views
unable to find class for annotation @Field in jenkins pipeline script from scm
I'm encountering an issue with my pipeline script when running it from SCM. The @Field annotation isn't being recognized, even though I'm using the correct import statement (import groovy.transform....
0
votes
0
answers
84
views
UV Docker Cache behaviour issues
I have checked out Docker Caching and the uv docker example. Both of them fail to clarify on the behaviour of the cache directory.
In the local system, I'm able to check and verify that the ...
0
votes
0
answers
48
views
Jenkins Pipelines in Docker: Failed to rm container
My setup is both Jenkins master & agent running via "Docker in Docker" scheme onto Docker Desktop for Windows with WSLv2 backend.
In my Jenkins Pipelines, I am using docker step from ...
0
votes
1
answer
63
views
Submitted an API request, poll for job status updates then observed an issue where the job status never updates from "pending"
I'm working with an API that uses OAuth-based authentication, accepts dynamic JSON payloads, and processes requests asynchronously. After submitting a request, I poll for job status updates. However, ...
0
votes
0
answers
32
views
Jenkins multibranch pipeline not working for new branch
After updating Jenkins to version 2.516.3, it is no longer building new branches.
In a new project, we just merged develop into master, including the correct conditions for Jenkins to build on the ...
0
votes
0
answers
75
views
PyInstaller build on Jenkins: ValueError: Invalid async_mode specified with Flask-SocketIO + gevent
I am building a Python 3.11 Flask-SocketIO project into an .exe using PyInstaller on Jenkins (Windows 10).
The project works fine when I run it locally with python runapp.py or even inside Jenkins ...
0
votes
1
answer
34
views
In Jenkins, how do I import some, but not all, functions from shared library vars folder?
I have a Jenkins shared library set up like:
shared-library
└── vars
├── testA.groovy
└── testB.groovy
All the documentation I can find on shared libraries mentions that you can use an ...
-2
votes
1
answer
67
views
How to fix a Jenkins pipeline for a 100+ flavor Flutter app? My build times are over 30 hours [closed]
I'm hoping to get some advice and validation on a pipeline strategy for a large white-label Flutter project.
The Setup
One Flutter codebase.
100+ flavors for unique customer apps (Android & iOS)
A ...
0
votes
1
answer
42
views
How to reuse a loaded script in another loaded script in Jenkins without using libraries
I have a main job script,
pipline.groovy
node('Node1'){
def script1 = load('script1.groovy')
script1()
//..some code
def script2 = load('script2.groovy')
}
I load two scripts in it,
script1....
0
votes
0
answers
52
views
Jenkins Allure commandline tool issue
we are using allure command line tool to generate reports and have multiple versions 2.10.0 and 2.32.1. 2.32.1 is set as allure-latest in tools config but when we run the Jenkins pipeline its ...
0
votes
0
answers
32
views
How cloudbees calculates casc bundle checksum
following is the bundle.yaml which I downloaded from my cloudbees operations center. I am wondering how does cloudbees calculate this checksum?
variables:
- variables/01-ftr01.gistest-casc.variables....
0
votes
0
answers
67
views
Why does Jenkins pipeline not see git tags after checkout in a Docker/Windows agent?
I am using a Jenkins declarative pipeline with a Docker agent (Windows label).
In my pipeline, I want to get the current git tag for the commit being built, so I can use it for artifact naming.
My ...
0
votes
0
answers
68
views
Could not determine exact tip revision of master
Occasionally in Jenkins Pipelines we see the following error:
ERROR: Could not determine exact tip revision of master; falling back to nondeterministic checkout
This then results in a git checkout ...
1
vote
0
answers
48
views
Running Jenkins agent through terraform userdata script, which makes the selenium tests to execute in headless mode
I have a PowerShell script which is passed as user data script in terraform for Windows Server 2022 VM creation in AWS cloud. This PowerShell script uses Jenkins API to create the node and connect the ...
0
votes
0
answers
29
views
Jenkins Active Choice HTML parameter not updating hidden value field with dynamic JS in Groovy script
Description: I'm using the Jenkins Active Choices Plugin to build a dynamic UI with parameters for test suites and their arguments.
I have two parameters:
SUITES (Active Choice Checkbox): Lets the ...
0
votes
0
answers
57
views
Unable to upload artifacts into Nexus for my Jenkins freestyle job
This is the issue that I'm still having it with Nexus (Situation: I can't deploy into nexus - I can't upload artifacts into nexus for any of my freestyle project or pipeline project in Jenkins)
By the ...
0
votes
0
answers
77
views
Add job name and build number to Jenkins agent provided by Kubernetes plugin
I would like to add the job name and build number as a pod label of the agent pod that is spawned by the kubernetes plugin.
For example, if I have a job called "buildMyApp" and I start build ...
0
votes
0
answers
60
views
How to remove Jenkins plugin with missing dependency
In my Jenkins instance, I have an error message that the Azure Container Services Plugin cannot be loaded due to a missing plugin, kubernetes-cd
I don't need this plugin so I'd be happy to uninstall ...
0
votes
0
answers
48
views
Jenkins Priority Sorter Plugin Missing Job Priorities Configuration Section
I just installed the Job Priorities plugin for my Jenkins instance, but I can't for the life of me figure out where the Job Priorities configuration section is located.
The plugin is installed, ...
0
votes
0
answers
57
views
Jenkins Groovy buildRetention is deprecated
I have pipelines that I am building using groovy. Currently I am setting my buildRetention using the following:
strategy {
allBranchesSame {
props {
...
0
votes
0
answers
59
views
Run periodic job only if SVN repository has changes
I'm running Jenkins on a Windows machine, and I have a Jenkinsfile that triggers a pipeline periodically using the cron directive:
pipeline {
agent any
triggers {
cron('0 1 * * 1-5') /...
2
votes
0
answers
100
views
Cannot get Git exit code with Powershell script in Jenkins
In a Jenkins script, I do :
def status = powershell(
script: """
# Display current directory
Write-Host "Current directory: \$(Get-Location)"
# ...
0
votes
1
answer
44
views
Getting error trying to build a swift package on a EC2 server in jenkins
I have been working on the following error, not able to move the needle. Would appreciate any feedback!
SH statements:
swiftImage.inside() {
sh '''
# Show Swift version and directory contents
...
0
votes
1
answer
94
views
How can I add an optional, manually triggered, postbuild action to Jenkins
The problem
Brief
I am trying to add a GUI option to the dropdown menu available for all historical builds:
Details
I want to create an option that will lock the build, create a git tag by ...
0
votes
1
answer
49
views
Free the worker of parent pipeline during the build of child pipeline
I have a Jenkins pipeline pipeline1 that launches another one (pipeline2) on the same agent myAgent:
pipeline1:
node('myAgent') {
stage('Do some work before') {
sh(script:"sleep 5&...
0
votes
1
answer
71
views
How to post groovy to Jenkins /scriptText from a job
I’m trying to create a scheduled job that will post a groovy script to /scriptText and display the results. I added a HTTP Request build step with the url and mode set to POST. Under advanced I have ...
2
votes
1
answer
148
views
Jenkins nodes created through the GUI contain an invalid <nodeProperties> value in config.xml
We have multiple Jenkins controllers for different products. One 2 of those controllers, a new behaviour has emerged. When I create a new node through the GUI (using the "Permanent Node" ...
0
votes
0
answers
80
views
jenkins groovy update kind="secrets text" credentials store in jenkins
Trying to find out what is wrong. thinking I am missing something. context - want to update the secret in the secrets-text credential store by providing only "Credential ID".
I confirm that ...
0
votes
0
answers
168
views
Jenkins Plugin Manager showing "There were errors checking the update sites: ArrayOutOfBoundsException: Index 0 out of bounds for length 0"
I am getting this error in jenkins plugin manager when I navigate to updates or available plugins
There were errors checking the update sites: ArrayOutOfBoundsException: Index 0 out of bounds for ...
0
votes
0
answers
105
views
Jenkins pipeline - Cannot run program "" (in directory "/var/lib/jenkins/caches/git-xxxxx"): error=2, No such file or directory
Currently I have this issue within my Jenkins pipeline. Here is the context.
I am setting the Jenkins server in EC2 instance and docker container as an build agent. within this one, I install docker ...
0
votes
0
answers
94
views
Unexpected Error when run powershell script in CI/CD
Here are some basic infos:
windows server 2016
CI/CD: jenkins running on windows server 2016
I have a msvc program, I start the building by calling a powershell script. I can run it successfully at ...
0
votes
0
answers
54
views
Disable automatic type conversion when loading with readYaml in Jenkins pipeline
I am loading a yaml file using readYaml inside a declarative Jenkins pipeline. My file contains values that are of format YYYY-MM-DD, for example 2024-10-23. However, after loading, these values ...
1
vote
1
answer
65
views
How to use fileCopyOperation in jenkins groovy to copy 3 files with the same name from 3 different directories, to 1 directory with 3 different names
At the end of a Jenkins pipeline, I am trying to copy three files with the same name, in three different directories, into one directory, obviously renaming the files to avoid a name clash. The input ...
0
votes
0
answers
110
views
Why does kubectl logs --follow show duplicate output when used in a loop to watch Kubernetes Job logs?
I'm running a Kubernetes Job from a Jenkins pipeline and want to stream its logs until completion.
I currently use this pattern in a Bash script:
job_status_cmd_complete="kubectl get job ${...
0
votes
1
answer
44
views
Jenkins and JSR-352 (Java batch) combined?
I have a JSR-352 application. It performs Batch Processing and thus is a command line application writing logs to stdout.
This goes nicely with Jenkins that provides a perfect UI to configure/run the ...
0
votes
1
answer
244
views
Jenkins controller throwing HTTP 500 Error after upgrading Java to 21
I am currently on Jenkins version 2.504.3. I tried upgrading my Jenkins JDK from 17 to 21 on my Jenkins controller. I am using Open JDK and my Jenkins runs on Ubuntu server.
I encountered the ...