Category "jenkins-declarative-pipeline"

script: "git rev-parse ${latestTag}^{commit}" fails in Jenkinsfile

Below line in Jenkinsfile latestTagSHA1 = sh(returnStdout: true, script: "git rev-parse ${latestTag}^{commit}") results in script.sh: ^{commit}: not found error

How to run multiple agents (given on runtime) simultaneously with Jenkins Declarative Pipeline?

I'm running a Jenkins Job on multiple platforms selected manually at runtime. Having multi-select Active Choices Parameter named "Platforms" for the relevant no

How to parameterise the boolProp tag in jmeter jmx file for providing the input in jenkins

Context: Using JMeter 5.4.3 Using JenkinsFile for setup Jmeter Thread group in .jmx has the below snippet: <ThreadGroup guiclass="ThreadGroupGui" tes

Running Powershell script in Jenkins Declarative pipeline

I want to run Powershell script on agent from Jenkins declarative pipeline. It hangs on the script execution step (click on Job logs) and i have to forcefully e

file parameter in declarative pipeline

I am developing declarative pipeline and want to use file parameter to read its content, but its not working as expected parameters{ file(fileLocation: