I think you can use the "customWorkspace" option.
https://www.jenkins.io/doc/book/pipeline/syntax/
I use the declarative and scripted pipelines, so I don't know if there is
that option in freestyle too.
Cheers,
Gianluca.
Il giorno gio 24 set 2020 alle ore 15:33 jesus fernandez <
jesusfernandez0
I agree with Saravanan ... and I would also add that there are other two
Jenkins features we use for your case.
The approach we follow is:
- first we try with "when" to run stages conditionally depending on
branches/parameters/tags/directory and so on
- when we see many times the same piece of code
We had the same issue.
We solved putting a reverse proxy just for the webhooks.
In this way, nothing is exposed public but just the necessary for the
webhook
A tiny machine with Nginx using proxy_pass directive does the trick.
Cheers,
Gianluca
On Wed, 17 Jun 2020, 06:18 Harald Dunkel, wrote: