Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
bfa468c7
Unverified
Commit
bfa468c7
authored
4 years ago
by
Maxime Guyot
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Ensure upgrade CI jobs are named correctly (#5909)
parent
6318bb9f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/testcases_run.sh
+13
-3
13 additions, 3 deletions
tests/scripts/testcases_run.sh
with
13 additions
and
3 deletions
tests/scripts/testcases_run.sh
+
13
−
3
View file @
bfa468c7
...
...
@@ -2,9 +2,19 @@
set
-euxo
pipefail
echo
"CI_JOB_NAME is
$CI_JOB_NAME
"
pwd
ls
echo
${
PWD
}
if
[[
"
$CI_JOB_NAME
"
=
~
"upgrade"
]]
;
then
if
[
"
${
UPGRADE_TEST
}
"
==
"false"
]
;
then
echo
"Job name contains 'upgrade', but UPGRADE_TEST='false'"
exit
1
fi
else
if
[
"
${
UPGRADE_TEST
}
"
!=
"false"
]
;
then
echo
"UPGRADE_TEST!='false', but job names does not contain 'upgrade'"
exit
1
fi
fi
export
ANSIBLE_REMOTE_USER
=
$SSH_USER
export
ANSIBLE_BECOME
=
true
...
...
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