IBM DevOps的管道:如何访问从previous招聘文物? [英] IBM DevOps Pipeline: How to Access Artifacts from Previous Job?

查看:295
本文介绍了IBM DevOps的管道:如何访问从previous招聘文物?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个建设阶段的有两个版本的工作,一个前端后台工作如下图所示。我如何直接访问的构建归档目录的从后台前端作业的作业构建脚本?

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.

在这里输入的形象描述

推荐答案

目前,一个阶段内的工作都在完全独立的环境中运行。他们没有获得在舞台上的其他作业的工件。要解决这个问题的方法是创建的后台工作的新阶段,然后设置为输入该阶段是从前端工作。

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

这篇关于IBM DevOps的管道:如何访问从previous招聘文物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆