Same workspace for multiple jobs

前端 未结 4 2100
星月不相逢
星月不相逢 2020-12-07 15:42

I have a job called \"development\" and another project called \"code analysis\". At the moment we have two different jobs and different workspaces, but same code; is there

4条回答
  •  既然无缘
    2020-12-07 16:00

    There is a Jenkins Plugins which enables you to create a shared workplace a setup them on every job which need the files from that given repository.

    Use Case:

    Similar to what you need, first create two jobs from the same Git Repository, then go to "Manage Jenkins" and you create a Shared Workspace. And point to it, on every job you need to read from that files.

    Jenkins Plugin

    https://wiki.jenkins-ci.org/display/JENKINS/Shared+workspace+plugin#


    PS: You should look into "Known Issues" could be a deal breaker for your needs.

    sometimes, on fresh copied job, shared-space url parameter not saving to config on first "save", you should save job twice to be sure.

    ^^ This one it's still unresolved, I tried and still happens. After some several saves (just to be sure) the job runs perfectly.

提交回复
热议问题