RE: myworkspace is created as myworkspace@3

2021-12-30 Thread gmaxera
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

RE: Trigger upstream job

2021-12-17 Thread gmaxera
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

RE: Trigger upstream job

2021-12-17 Thread gmaxera
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

RE: How to hide/remove some tags from Jenkins builds?

2021-09-16 Thread gmaxera
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

RE: Having one executor and want to run multiple jobs one by one

2021-04-08 Thread gmaxera
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

RE: Is it possible to trigger a GitHub webhooks build - from another repo?

2021-03-19 Thread gmaxera
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

RE: Pipeline retry step

2021-02-08 Thread gmaxera
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

RE: Environment variable - shell

2021-02-02 Thread gmaxera
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