Hi Subhadra,
Hard to guess what you are doing wrong without further details.
So, at the moment, I could only guess that you are not using the WORKSPACE
environment variable.
https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
Cheers,
Gianluca.
From: 'Su
Hi Adharsha,
We don’t use freestyle, so I may not be the best person to help you.
I’m struggling although to understand the logic you want to implement.
You said that in the “second job” configuration you configured “build trigger”
and selected “first job”.
But then you said you click “Build N
Hi Adharsha,
We use this in our pipeline and works:
def job = build([
job: “Job/name”,
wait: true,
propagate: false
])
What are the errors that you are experience on doing it?
Can you add more details?
Cheers,
Gianluca.
From: jenkinsci-users@googlegroups.com On
Beha
Hi Dirk,
While I can vote … that is not the issue I’m facing.
There is a comment on that ticket that explain probably better that how I did
in my email:
“As far as I understand, this works as expected. A Build Strategy is
responsible for the decision whether to build a newly discovered Tag
Hi,
I’ve already answered to this question.
If you weren’t happy to my reply … starting a new fresh thread won’t help
anyway.
To be frank … I’m a bit offended that you ignored my replies and started a new
thread.
Do you think I wouldn’t notice?
Cheers,
Gianluca.
From: jenkinsci-us
Hi,
You can do it from Jenkins itself.
For example, in our case we want the exact opposite, so we have in our pipeline:
stage('Setup') {
when {
beforeAgent true
anyOf {
triggeredBy 'UpstreamCause'
triggeredBy 'UserIdCause'
}
}
ste
Hi Graham,
I have no ide … but why not test it?
It’s quite straightforward:
Retry(1) {
Error(“This will fail … but how many times you will see this text?”)
}
Cheers,
Gianluca.
From: jenkinsci-users@googlegroups.com On
Behalf Of Graham Hay
Sent: 08 February 2021 12:50
To: Je
Hi,
Jenkins does it for you if you use the “environment” block.
https://www.jenkins.io/doc/book/pipeline/syntax/#environment
There is an example that uses “sh” command to show how Jenkins automatically
inject environment variable inside a shell.
Cheers,
Gianluca.
From: jenkins