13,168 questions
Tooling
2
votes
0
replies
53
views
What should be used in Jenkins pipelines for FTP operations like download, delete, move, or rename?
I am working with a Jenkins pipeline that needs to perform several FTP operations such as:
Download files from an FTP server
Delete files or folders
Move or rename files and directories
I found the ...
0
votes
0
answers
51
views
Jenkins GitHub Plugin not passing Pull Request environment variables such as CHANGE_ID
I'm currently building a job to run terraform plan on pull requests and comment the output back into said PR. However I'm having trouble getting the comment curl command to work because the CHANGE_ID ...
0
votes
0
answers
40
views
jenkins automation error to push code in github
error occuring when building job to push code in github via jenkins daily:
error is:
Error fetching remote repo 'origin'
Finished: FAILURE
cd /d "<path>"
git config user.email "&...
1
vote
0
answers
55
views
How to use a local groovy class in the Jenkinsfile?
I am trying to load a class from my git repository (which is not a shared library), but I run into serialization problems. I have a class ProductData in src/com/mycode/ProductData.groovy. The class ...
1
vote
1
answer
47
views
java.lang.NoSuchMethodError: No such DSL method 'withAWS' found among steps
I want to create a Jenkins job which cleans all images from a list of defined repositories.
I tried this:
pipeline {
agent any
environment {
AWS_DEFAULT_REGION = 'us-east-1'
...
0
votes
1
answer
76
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
31
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
82
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
41
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
102
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
77
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
48
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 ...
1
vote
2
answers
168
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
99
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
86
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 ...