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
e016ce3e
Commit
e016ce3e
authored
3 years ago
by
romanvalov
Browse files
Options
Downloads
Patches
Plain Diff
print environment variables
parent
36d1164c
Branches
Branches containing commit
No related tags found
1 merge request
!1
Mrtest
Pipeline
#10902
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci-template.yml
+0
-4
0 additions, 4 deletions
.gitlab-ci-template.yml
.gitlab-ci.yml
+1
-68
1 addition, 68 deletions
.gitlab-ci.yml
with
1 addition
and
72 deletions
.gitlab-ci-template.yml
deleted
100644 → 0
+
0
−
4
View file @
36d1164c
latest
:
stage
:
test
script
:
-
echo 'test!'
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
1
−
68
View file @
e016ce3e
include
:
-
local
:
'
.gitlab-ci-template.yml'
.image-stable
:
cache
:
-
key
:
image-stable
paths
:
-
smash.text
.image-latest
:
cache
:
-
key
:
image-latest
paths
:
-
cache.text
build
:
stage
:
build
variables
:
A
:
(x y z)
B[0]
:
a
B[1]
:
b
B[2]
:
c
script
:
-
set -ex
-
echo "$A" || :;
-
echo "${A[@]}" || :;
-
echo "${#A[@]}" || :;
-
echo "${!A[@]}" || :;
-
echo "$B" || :;
-
echo "${B[@]}" || :;
-
echo "${#B[@]}" || :;
-
echo "${!B[@]}" || :;
-
echo "STAMP=$RANDOM" | tee .env
-
cat .env > cache.text
-
cat .env > smash.text
cache
:
-
!reference
[
.image-stable
,
cache
]
-
!reference
[
.image-latest
,
cache
]
artifacts
:
expire_in
:
1 min
paths
:
-
./.env
latest
:
stage
:
test
before_script
:
-
echo 'TEST?'
after_script
:
-
echo 'TEST.'
test
:
stage
:
test
script
:
-
. .env
-
echo "$STAMP"
-
cat cache.text
-
cat smash.text
-
for m in `seq 1 30`; do echo $m; sleep 30; done
cache
:
-
!reference
[
.image-stable
,
cache
]
-
!reference
[
.image-latest
,
cache
]
deploy
:
stage
:
deploy
script
:
-
. .env
-
echo "$STAMP"
-
env
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