IBM DevOps Pipeline: How to Access Artifacts from Previous Job?

不打扰是莪最后的温柔 提交于 2019-12-11 03:15:21

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/32100405/ibm-devops-pipeline-how-to-access-artifacts-from-previous-job

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!