Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
hpc-factory
Commits
00cf53d4
Commit
00cf53d4
authored
1 year ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary condition
Since the job only run in schedule pipeline after !74 merged
parent
5a68d67e
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
.gitlab-ci.yml
+5
-12
5 additions, 12 deletions
.gitlab-ci.yml
with
5 additions
and
12 deletions
.gitlab-ci.yml
+
5
−
12
View file @
00cf53d4
...
@@ -293,14 +293,10 @@ test_ood_image:
...
@@ -293,14 +293,10 @@ test_ood_image:
curl --retry 10 --retry-delay 20 --retry-connrefused https://knightly.rc.uab.edu/Shibboleth.sso/Metadata --resolve knightly.rc.uab.edu:443:$FLOATING_IP -kf
curl --retry 10 --retry-delay 20 --retry-connrefused https://knightly.rc.uab.edu/Shibboleth.sso/Metadata --resolve knightly.rc.uab.edu:443:$FLOATING_IP -kf
|| FAILED=true
|| FAILED=true
-
|
-
|
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
ssh -o StrictHostKeyChecking=no acctsvc@$FLOATING_IP '[ $(mount | grep "etc/auto" | wc -l) -eq 6 ]' || FAILED=true
chmod 644 ~/.ssh/known_hosts
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
until ssh acctsvc@$FLOATING_IP hostname; do sleep 5; done
cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "etc/auto" | wc -l) -eq 6 ]' || FAILED=true
chmod 644 ~/.ssh/known_hosts
until ssh acctsvc@$FLOATING_IP hostname; do sleep 5; done;
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "etc/auto" | wc -l) -eq 6 ]' || FAILED=true
fi
-
|
-
|
if [ "$FAILED" = true ]; then
if [ "$FAILED" = true ]; then
if [ "${DELETE_WHEN_FAILED-true}" = true ]; then
if [ "${DELETE_WHEN_FAILED-true}" = true ]; then
...
@@ -309,10 +305,7 @@ test_ood_image:
...
@@ -309,10 +305,7 @@ test_ood_image:
fi
fi
false
false
fi
fi
-
|
-
openstack server remove floating ip $NEW_INSTANCE_ID $FLOATING_IP
if [ $CI_PIPELINE_SOURCE = "schedule" ]; then
openstack server remove floating ip $NEW_INSTANCE_ID $FLOATING_IP
fi
artifacts
:
artifacts
:
reports
:
reports
:
dotenv
:
instance.env
dotenv
:
instance.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