How to access artifact from across tasks #8847
-
Here is an example to run task with across: resources:
- name: runner-image
type: registry-image
source:
repository: busybox
jobs:
- name: across-artifact-test-job
plan:
- get: runner-image
- task: build-source-task
image: runner-image
config:
platform: linux
outputs:
- name: app-source
run:
path: sh
args:
- -exc
- |
echo "Text from source" > ./app-source/message
- across:
- var: plan
values: ["dev", "free", "full"]
- var: platform
values: ["web", "mobile"]
do:
- task: append-plan-platform-task
image: runner-image
config:
platform: linux
inputs:
- name: app-source
outputs:
- name: app-output
run:
path: sh
args:
- -cx
- |
cat ./app-source/message > message_((.:plan))_((.:platform))
echo "((.:plan))_((.:platform))" >> message_((.:plan))_((.:platform))
mv message_((.:plan))_((.:platform)) ./app-output
- task: show-result-task
image: runner-image
config:
platform: linux
inputs:
- name: app-output
run:
path: sh
args:
- -cx
- |-
cat ./app-output/message_dev_web When running the |
Beta Was this translation helpful? Give feedback.
Answered by
amayer5125
Feb 15, 2024
Replies: 1 comment
-
The documentation says:
I don't believe what you are trying to accomplish is possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
taylorsilva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation says:
I don't believe what you are trying to accomplish is possible.