13,191 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 ...
Advice
1
vote
1
replies
22
views
How do Groovy (Jenkins pipeline) singletons work?
Say I have the following classes.
@Singleton
class EnvMgr {
private String environment = "default"
String getEnvironment() {
return environment
}
def setEnvironment(...
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 ...
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
0
answers
88
views
How can I keep track of expired time in a timeout{} step?
Say I have this recursive function in a Jenkins pipeline. It's initially called by another function, but then calls itself recursively.
def recursiveFunction(final Integer timeout) {
static Integer ...
1
vote
1
answer
62
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....
1
vote
0
answers
40
views
Jenkins Pipeline - string parameters not being pulled into PowerShell script
Pipeline is not passing down string parameter data to the PowerShell command were trying to create a jenkins page that allows a person to create a cname on a domain. We know creds work if we bypass ...
0
votes
1
answer
95
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
0
answers
84
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 ...
-2
votes
1
answer
73
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
0
answers
53
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
74
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
87
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
57
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
66
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') /...