Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-testing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
romanvalov
gitlab-testing
Commits
9c3aa159
Commit
9c3aa159
authored
4 years ago
by
romanvalov
Browse files
Options
Downloads
Patches
Plain Diff
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
4 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-25
12 additions, 25 deletions
.gitlab-ci.yml
with
12 additions
and
25 deletions
.gitlab-ci.yml
+
12
−
25
View file @
9c3aa159
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment