IBM DevOps Pipeline: How to Access Artifacts from

2019-07-12 15:27发布

I have a build stage as shown below with two build jobs, a frontend and a backend job. How do I directly access the Build Archive Directory of the frontend job from the backend job's build script?

I need to access the frontend build artifacts in order to properly build the final archive. And I can see all the artifacts show up in the Artifacts tab for the frontend build. But how do I access that from the second job, i.e. backend build?

I saw here that there is an Environment variable to access the current job's archive dir, but I need to access the other jobs archive dir.

enter image description here

1条回答
来,给爷笑一个
2楼-- · 2019-07-12 16:33

Currently, both jobs inside a stage are run in complete separate environments. They do not have access to the artifacts of the other jobs in the stage. The way to get around this is to create a new stage for the 'backend' job, and then set the input for that stage to be the build artifacts from the 'frontend' job

查看更多
登录 后发表回答