Best way to send XML results from a curl

we have a Jenkins pipeline that sends a sh 'curl' request to a an api/application to runs specific tests for us, and we fail/pass the build depending on the results. What I want to do: is to parse

View details »

Why does my angular build time vary so much

I have a Jenkins build of an Angular 5 webapp. Sometimes the build will take 6 minutes, other times it will take 50+ minutes, and appears to take any random number of minutes between those two extre

View details »

column string check via groovy pipeline code

if the fourth column of every row of a csv file is 200 then it should return success message else it should fail .for this scenario I am trying to print 4th Column. stage('GetColumnstring') {

View details »

Completely rename the default context of commit status from github-plugin

While using the the Github plugin to trigger build automatically when a new PR coming up or new commit (for multiple branch pipeline job). I want to change the commit status context so each job wil

View details »

Jenkins multipipeline job deletes build and starts from zero as if its set for first time [on hold]

Jenkins: "2.164.2" I have multipipeline job.Pipeline has around 8 stages, out of which 2 stage are parallel and others are in series. Parallel stage has 8 stage that runs in parallel. I have buildDi

View details »

Stop JMeter script after a certain time in jenkins build

While running JMeterbuild in jenkin, it run as infinite mode "never stops" even though the configuration is set in JMX. How to stop JMeter build after a certain time ? I have tried to provide comm

View details »

How to get the end the time of the current jenkins build in pipeline code?

My requirement is to get the end time of the current build in pipeline code. How to get it

View details »

Pipeline DSL: Change build name on the fly

i would like to run some builds in parallel based on one core job (downstream job) , in the following code there is no option to change the build name on the fly, for example instead of numbers (def

View details »

Unable to run Rhapsody application via Jenkins

when we run a Rhapsody application via Jenkins. My scenario: 1) I need to get details about various diagrams in a Rhapsody model. 2) I have written Java code using api provided by Rhapsody to get t

View details »

Jira issue not created when jenkins build failed

Error while Integrating Jenkins with Jira I am trying to create jira issue when jenkin job fails Building in workspace C:\Users\xxx\.jenkins\workspace\testjob [testjob] $ sh -xe C:\Users\xxx\App

View details »

sh command in groovy Jenkinsfile in multiple lines

Hey folks I want to execute a sh command in a jenkinsfile which is pretty long, into multiple lines. thing is I´m unable to do so. command gets executed but only first line. I tried with "\" with "

View details »

jenkins windows ssh slave can't access map drives

I have a jenkins setup at office, where jenkins (windows) is connected to slave (windows) over ssh using OpenSSH public private key authentication. The issue I am facing right now is with the access

View details »

Fast-turnaround Jenkins Pipeline script development

Is there a way to write Jenkins Pipeline script interactively, like you can run other Groovy in the Jenkins Script Console? Ideally I effectively want "pipeline groovysh in Jenkins". AFAICS the scr

View details »

Yarn install Invariant Violation: should have a resolved reference

I'm attempting to build a release on Jenkins 2.150.1 and I'm encountering an error with yarn install: Invariant Violation: should have a resolved reference The install works fine on my local machin

View details »

(Error while running a command with SSH) command-line: line 0: Bad configuration option

Error Msg: command-line: line 0: Bad configuration option: sh '''ssh -i ${rundeck_rsa_key} -o StrictHostKeyChecking=no -o centos@xxxx.net "sudo su -c "sh ./home/centos/releases/xx.sh" rundeck"

View details »

Pulling Git commiter's information (email address) in declarative pipeline

I have created a declarative pipeline which gets triggered when developers commit the code in GitHub Enterprise. I want to Post success & failure email notification to the committer I referred this

View details »

How to get values of env vars by writing groovy script on jenkins script console?

I searched a lot for this problem but couldn't find working solution anywhere. Can anybody please help me out? I want to get already existing env vars value through jenkins script console.

View details »

How can I delete the Jenkins builds by its running duration?

I have a Jenkins job that sometimes runs for more than 1 hour, sometimes it just runs for few seconds. What I really need are those builds with a duration more than 1 hour. So I would like to dele

View details »

Error when running Headless Chrome in Jenkins Docker using puppeteer

I run Jenkins in Docker(Debian9) to test Angular 7 app by using ChromeHeadless browser. I've the following in karma.conf.js process.env.CHROME_BIN = require('puppeteer').executablePath() karmaConf

View details »

Jenkins EC2 plugin starts and stop immediately

I am trying to create a new EC2 instance every time when there are no executors or number of jobs are in queues. All the jobs must run on slave node. For the purpose, I came to know about Amazon E

View details »