Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

How to use AWS s3 conditional write in my Jenkins job

I have a Jenkins multibranch pipeline that stores status of branches in a shared S3 groovy object. Groovy file looks something like this : [["name":"def-123","current_status&...
Akash tiwari's user avatar
0 votes
0 answers
19 views

Fetching git commit details in jenkins pipeline

I've configured a Jenkins pipeline to fetch commit author and commit message details. However, when commits are made through the GitHub UI, I'm only getting 'GITHUB' as the username instead of the ...
R Chinna Durai's user avatar
0 votes
0 answers
50 views

How can I fix this jenkins error I am getting while pushing to GCP Artifact registry

I wrote a Jenkins Pipeline to push to gcp artifact registry, I can't tell why I get this error Error: trying to reuse blob sha256:617df26c9e2bec4e63eed45acaa78b253ac74e1cd0dd74da35b050f3ef707d47 at ...
jef  chang's user avatar
0 votes
0 answers
15 views

Appium Maven Test run using Jenkins locally

I tried to run Appium maven test locally using a Jenkins job. First , I tried running the test using mvn commands on the command line tool and it worked properly. After that, I tried to run the same ...
Kasun Ishanka Yapa's user avatar
0 votes
0 answers
18 views

Jenkins console output special characters

Jenkins console output Error facing this problem in only one pipeline rest of the pipeline of same account having no error in console output i tried JVM option Global Properties UTF-8 envorment add ...
tushar IT's user avatar
0 votes
1 answer
18 views

How to enforce the 2nd job session in the waiting list in jenkins job

I have a jenkins job that is in such configuration: pipeline { agent any ... stages { stage('Set-Up'} script { ... } } ...
user3595231's user avatar
0 votes
0 answers
24 views

Error Not authorized. check the user token in the property 'sonar.token' or the credentials in the properties 'sonar.login' and 'sonar.password'

We are having issues on the Sonarqube Stage in Jenkins Pipeline. We are Getting this error below. [Sonarqube] > Not authorized. Please check the user token in the property 'sonar.token' or the ...
vince pablo's user avatar
1 vote
0 answers
25 views

Triggering Jenkins pipeline through PR Create trigger in BitBucket

I am trying to trigger a Jenkins pipeline using webhooks in BitBucket so that whenever a PR is opened from any branch into main (or vice versa), the pipeline is triggered. I have set up the webhook to ...
Rayyan_M's user avatar
0 votes
0 answers
22 views

Unable to get Jobs back after jenkins version update

I can log in but cannot get the jobs after the version update. I have updated my jenkins in below mentioned order 2.361.2 -> 2.375.1->2.375.4->2.387.1->2.387.2->2.387.3->2.401.1->...
Mansi Chavan's user avatar
0 votes
0 answers
42 views

Spring Boot Application Failing to Connect to MySQL Database in Jenkins Pipeline

I’m working on a basic Spring Boot web application using MySQL. When I try to run it in Jenkins, I encounter an issue where it fails to connect to the database. The application works perfectly on ...
anmol kumar's user avatar
0 votes
1 answer
25 views

Jenkins pipeline step that conditionally requires user confirmation

I'm trying to create a Jenkinsfile with three stages: A, B C, where stage A has these properties: if the git branch is develop then A always runs for any other git branch a prompt is displayed: "...
BillyBadBoy's user avatar
-1 votes
1 answer
44 views

Facing issue with Jenkins pipeline script

This is regarding the error which I am facing while executing the pipeline on Jenkins, This is the error: NoSuchMethodError: No such DSL method 'awsCodeDeploy' found among steps. FYI, I have installed ...
Vishnu Vinodan's user avatar
-1 votes
1 answer
40 views

Pass an array from groovy to bash

I use Jenkins for k6 tests CI/CD. In my pipeline I have the code: def users = ["user1","user2","user3"] sh """ export MY_USERS=${users.join(' ')} ./start....
stupid_beaver's user avatar
0 votes
0 answers
30 views

Python selenium job works different on Jenkins slave on windows running under powershell commandline vs running under winsw/task scheduler

I have a python selenium script using chromedriver.exe in headless mode to perform some rota tasks on ibm esa web application, python selenium script when executed from powershell command line works ...
R N's user avatar
  • 1
0 votes
2 answers
36 views

Why does jenkins readyaml stop working after you create a StringJoiner?

I created the following script import groovy.json.* pipeline { agent { node { label 'mycomputer' } } stages { stage ( 'Test') { steps{ script { ...
Bryan Tan's user avatar
  • 293
0 votes
0 answers
15 views

Jenkinsfile multbranch pipeline prepare workspace directory permissions before docker agent is created

TLDR; I would like to run a bash script (to change the workspace filesystem permissions) before jenkins attempts to create the agent docker container and initializes the workspace (and fail if it ...
michaelg9's user avatar
0 votes
1 answer
36 views

How to configure Jenkins step to wait until certain condition holds true before continuing with other steps?

How to configure Jenkins step to wait until certain condition holds true before continuing with other steps? In this particular case we want to postpone execution of unit tests until Permission Set ...
Patlatus's user avatar
  • 1,561
0 votes
1 answer
18 views

How does one retry a failed build on a scripted pipeline?

Is there a way to trigger a retry on a scripted pipeline if the pipeline fails? properties([ parameters([ string(defaultValue: "", description: 'optional_param1', ...
Mr. E's user avatar
  • 505
0 votes
0 answers
18 views

How to trigger different builds in a queue with different trigger frequency in jenkins?

I want to trigger 3 different builds in jenkins A,B,C. The frequency of triggering A and B is once every day and the frequency of triggering C is once every week. On the day C is getting triggered, I ...
Faisal Shaikh's user avatar
0 votes
1 answer
26 views

Cron job in Jenkins with choice params doesn't work

I am trying to write a jenkins cron job with some paratmers of type choiceParam() and it doent work together. How do i Have choce params and run the job in every 6 hours? I am trying do it via jCASC, ...
Mehboob Alam's user avatar
0 votes
1 answer
26 views

How to get upstream calling pipeline info in downstream pipeline without passing as parameter on Jenkins?

In Jenkins I have one pipeline triggering another pipeline through the use of "build job" syntax: Inside the Upstream_Job.groovy def build_result = build job: "Downstream_Job", ...
ooalgomaniac's user avatar
1 vote
1 answer
15 views

Jenkins pipeline restart from a stage API

Is there any Rest APIs provided by jenkins to restart from a stage in a pipeline? I am trying to restart a pipeline from a stage. In UI it is possible using 'restart from stage', but there are no API ...
RAJARAJESHWARIE .K's user avatar
0 votes
1 answer
37 views

Jenkins Pipeline - sshPut - Copy all files and folders

I want to copy all files and folders from current directory to Windows machine. Is there anyway to do this using sshPut command? sshPut remote: remote, filterRegex: '.*', from: './', into: 'D:\DATA' ...
LevanM's user avatar
  • 1
0 votes
2 answers
28 views

How to build the branch that was just pushed

I have a repository on GitHub with multiple branches, and I want to automate my builds. I have the logic to build my branch using the Git List Branch plugin. 1 My problem is that I want to ...
user26878866's user avatar
0 votes
2 answers
55 views

How to fix 'script returned exit code 15' when running Jenkins pipeline

I am defining a pipeline using Jenkins. I am working on a text summarizer project and using jenkins for CICD. After triggering the pipeline,in CD stage I am getting error as below: ssh -o ...
naruto007's user avatar
0 votes
1 answer
63 views

How to programmatically check if a Jenkins multi-branch pipeline scan has completed?

I use the Build pipeline plugin when triggering a job from a pipeline script, like this, where I set the wait condition to true since I want the job to finish before continuing. build job: "some-...
Chris F's user avatar
  • 16.2k
0 votes
2 answers
46 views

Jenkins Docker Container: Ansible fails to connect via SSH when run via Jenkins, connects fine if not ran via Jenkins. Failed ssh: muxserver_listen"

I'm running a Docker container of Jenkins with Ansible in the same image. Ansible is updating another Docker container on the same Docker network. Useing an ssh key file. Tested using root user and ...
harrypottar's user avatar
-1 votes
2 answers
37 views

Gitlab merge PRs only if jenkins pipeline succeeded

I'm trying to sync my gitlab PRs with a jenkins pipeline. I wish that for everytime someone opens a PR to branch "dev", a jenkins pipeline named "PRBuilder" will be triggered. If ...
Barvazi Momo's user avatar
-1 votes
1 answer
48 views

/bin/sh: 0: pipeline@tmp/durable-abcdef/script.sh.copy: No such file or directory

I am adding Jenkins in Android project and the build my one of my branches in MultiProject pipeline job. but it is giving “/bin/sh: 0: pipeline@tmp/durable-abcdef/script.sh.copy: No such file or ...
User42590's user avatar
  • 2,501
0 votes
0 answers
37 views

Run .cmd script on remote windows machine using Jenkins pipeline (Linux Jenkins)

I need to write the pipeline which sends my .jar file to remote windows server (done). And most important - I need to launch an existing .cmd on my remote windows machine through Jenkins pipeline (I ...
Alexander Tkachenko's user avatar
0 votes
1 answer
22 views

Jenkins dynamically provided credentials visible on UI and console

In my Jenkins script I use Mask Password plugin that does work with rather short values, like "password" or/and "pass", etc: ... def runRegressionTests(token) { stage("...
talgat-aitchanov-kn's user avatar
0 votes
0 answers
18 views

Jenkins shared library logic errors / groovy not working / very weird behavior

I am trying to create some shared library for Jenkins and after a very long journey I managed to almost finish it. Unfortunately at this point I am stuck with a very weird behaving / malfunctioning ...
David's user avatar
  • 185
0 votes
1 answer
23 views

Why Does My Jenkins Job Reset After Completion When Triggered by Gerrit?

I'm using a Jenkins pipeline that is triggered by Gerrit. After the job completes, it seems to reset, which causes issues with subsequent steps or tracking the results. Here is the relevant part of my ...
Chi Wei Shen's user avatar
0 votes
1 answer
40 views

"jf rt build-promote" with comment containing spaces in Jenkins pipeline fails

I am using "Jenkins JFrog Plugin" in a pipeline, where I promote a build with the comment option. I have not been able to find a way to run this with spaces in the comment. jf(""&...
ulfjo2's user avatar
  • 1
1 vote
0 answers
30 views

Unable to run Jenkins Pipeline

i am running jenkins inside the docker container. Now all i want is that inside docker container it should run the terraform commands by using the docker terraform image and then once the task is ...
Sharat Bhaskar's user avatar
0 votes
0 answers
16 views

Start parallel task and wait for it later in Jenkins Pipeline

In Java I can start a parallel thread, let it run and catch up/join with it later. I know how to start parallel task in Jenkins Pipeline but how can I let them run and do other stuff meanwhile and ...
Hasan Tuncay's user avatar
  • 1,098
0 votes
1 answer
28 views

Issue in Jenkins Pipeline

I’m in the process of migrating my CI/CD pipeline from GitHub Actions to Jenkins. I’ve set up the Jenkins server and configured Git. My current project is built with Node.js and uses numerous ...
ajay's user avatar
  • 11
0 votes
1 answer
22 views

connect to external ec2 with jenkins

I am trying to connect external ec2 instance 172.20.160.4 and create a testfolder, but it is connecting to its own instance. and the result is "Connected to ip-165-14-265-120.us-east-2.compute....
asif kaif's user avatar
  • 159
0 votes
2 answers
41 views

Shared Libraries in jenkins not working in parameters

I am trying to optimize my Jenkins scripts with the usage of shared libraries. I created a repository, created a vars directory and added two groovy scripts: . `-- vars |-- buildDockerImage.groovy ...
Pantelisy's user avatar
0 votes
0 answers
28 views

jenkins pipeline that has parameters of checkboxes and input text for each one selected

i want my jenkins pipeline to have parameters type checkboxes include docker_image_names and for each docker_image selected so there would be a input text shown as Docker_image_TAG. i tried to achieve ...
talms1's user avatar
  • 19
0 votes
0 answers
22 views

How to copy node_js directory from 1 server(Linux) to another server(Linux) in jenkins scripted pipeline?

when I copy whole directory from one server to another server I use this below script stage('deploy to another server'){ steps{ sshagent(['SSHAgent']) { sh ...
Jit Paul's user avatar
0 votes
0 answers
74 views

Wdio jenkins pipeline failing, working locally

So i have a working wdio project that is just set up, i have one login test thats passing locally. The jenkins pipeline is set by the company platform team and our internal team, its working based on ...
Nikola Kojčić's user avatar
0 votes
0 answers
19 views

How does Jenkins request the backend SSE (server end event) interface and return real-time results to the browser?

I have a backend interface that receives SSE requests and can return real-time execution logs. I want to view the real-time logs in "Console Output" in Jenkins. How should I initiate SSE ...
Shuqing Wang's user avatar
0 votes
0 answers
26 views

Need Help Parameterizing a Jenkinsfile

I have a Jenkinsfile template that our organization has adopted where project teams just have to set key-value pairs and our framework will handle the rest. I've included a sample of the top of the ...
Zain's user avatar
  • 13
1 vote
0 answers
52 views

System hang error step build net core with jenkins pipeline on ubuntu?

I try deploy system net core on vps ubuntu , but system hang .Info of vps : ram 1 gb , cpu 1 core , ssd 21gb . System hang step dotnet build . Script pipeline pipeline agent any stages { stage('...
Hậu tran's user avatar
2 votes
1 answer
26 views

How to get dynamic value from Json file generated during execution and use it in next command for Jenkins pipeline?

I have a Script which is generating a Dynamic session_id in a json file and after execution of script I want to use that session_id in next command like for example below is JSON file "name&...
Muneeb Akhtar's user avatar
0 votes
0 answers
37 views

How to efficiently migrate specific Jenkins jobs/credentials to new server while preserving the original Jenkins environment and handling credentials?

How can I efficiently migrate specific Jenkins jobs, including their configurations and dependencies, to a new Jenkins server using code, while preserving the existing Jenkins environment on the old ...
yashisreal's user avatar
0 votes
0 answers
24 views

Jenkins Pipeline problem with python script in docker container

I have a script in python and to automate the launch, I made a jenkins pipeline where I run the script in a dock container. However, when it comes to the part of the code: Then an error is returned ...
Maksim Ermakov's user avatar
1 vote
1 answer
39 views

How do I use groovy variables set from a properties file?

I have this simple properties file a=1 b=2 And the following groovy code stage('Load Properties') { steps{ script{ props = readProperties file:"...
Bryan Tan's user avatar
  • 293
0 votes
1 answer
43 views

Using a different user in each parallel stage in a Jenkins pipeline

I have a pipeline that is dynamically creating multiple parallel stages, effectively executing the same steps on a user-defined number of agents/Windows clients (set at execution). I want to have ...
Ian Mayoh's user avatar

1
2 3 4 5
258