Use Jenkins build file outside of pipeline build

时间:2019-04-23 15:18:35

标签: jenkins

I have several pipeline builds that are all related and in separate repos. We have one Jenkins file that builds them all. That file is in a repo all by itself. We call it "Deploy-Script" Right now, we have a copy of this Jenkinsfile in every repo, and we have to update each one every time there is a change. We want to stop this.

So I set the script path like this:

../Deploy-Script/Jenkinsfile

The build fails as it can't find the script. (which I know is there)

Is there any way to set a single Jenkisfile for a group of pipeline builds?

0 个答案:

没有答案