Skip to content
Snippets Groups Projects
Commit 9c3aa159 authored by romanvalov's avatar romanvalov
Browse files

check if short lived artifacts are preserved while

parent c40b186b
No related branches found
No related tags found
No related merge requests found
Pipeline #9291 failed
......@@ -2,36 +2,23 @@ build:
stage: build
script:
- set -ex
- JID=$(( RANDOM % 4 ))
- echo "JID=$JID" > .env
- echo "STAMP=$RANDOM" | tee .env
artifacts:
reports:
dotenv: .env
expire_in: 1 min
paths:
- ./.env
job0:
stage: test
script:
- echo job0
rules:
- if: $JID == '0'
job1:
test:
stage: test
script:
- echo job1
rules:
- if: $JID == '1'
- . .env
- echo "$STAMP"
- for m in `seq 1 60`; do echo $m; sleep 60; done
job2:
stage: test
script:
- echo job2
rules:
- if: $JID == '2'
job2:
stage: test
deploy:
stage: deploy
script:
- echo job3
rules:
- if: $JID == '3'
- . .env
- echo "$STAMP"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment