Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hpc-team
HPCasCode
Commits
76b950d8
Commit
76b950d8
authored
5 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
resolved merge conflicts
Former-commit-id:
f3e197e9
parent
fccb4d8f
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
+2
-74
2 additions, 74 deletions
.gitlab-ci.yml
with
2 additions
and
74 deletions
.gitlab-ci.yml
+
2
−
74
View file @
76b950d8
...
...
@@ -100,16 +100,6 @@ ansible_create_cluster_stage:
-
echo do it again
-
ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem master_playbook.yml
=======
>
>>>>>>
origin/master
#after_script:
#- rm ./files/inventory.$STACKNAME
#only:
# changes: #https://docs.gitlab.com/ee/ci/yaml/#onlychangesexceptchanges
# - "master_playbook.yml"
# - "vars/*.{yml,yaml}"
# - schedules
# - CICD/.gitlab-ci.yml
tests
:
stage
:
tests
...
...
@@ -142,33 +132,6 @@ tests:
-
bash -e ./tests/run_tests.sh NFSNodes "files/inventory.$STACKNAME" "../gc_key.pem"
-
bash -e ./tests/run_tests.sh SQLNodes "files/inventory.$STACKNAME" "../gc_key.pem"
# licensing https://gitlab.erc.monash.edu.au/hpc-team/license_server/tree/master/roles/avizo_license_monitor
manual_cluster_spawn
:
stage
:
push_button_spawn_cluster
tags
:
-
heat
-
ansible
before_script
:
-
echo "press button spawn cluster."
-
echo "for this to work you have to provide a variable called manual stackname"
-
echo I still need to handle os password
-
echo $MANUAL_STACKNAME
-
echo "$GC_KEY" > gc_key.pem
-
chmod 400 gc_key.pem
-
echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script
:
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
bash -x ./CICD/heat/heatcicdwrapper.sh create $MANUAL_STACKNAME
-
openstack stack list
-
export STACKNAME=$MANUAL_STACKNAME
-
sleep
25
-
bash -x CICD/ansible_create_cluster_script.sh
when
:
manual
only
:
refs
:
-
"
cicd"
extended
:
stage
:
extended
tags
:
...
...
@@ -185,17 +148,7 @@ extended:
variables
:
-
$EXTENDED !=
null
clean
:
stage
:
clean
tags
:
-
heat
before_script
:
-
echo "cleanup stack"
-
sleep
30
-
echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script
:
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
manual_cluster_spawn
:
stage
:
push_button_spawn_cluster
tags
:
...
...
@@ -220,22 +173,6 @@ manual_cluster_spawn:
only
:
refs
:
-
"
cicd"
extended
:
stage
:
extended
tags
:
-
heat
-
ansible
before_script
:
-
echo "cleanup stack"
-
sleep
30
-
echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script
:
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
only
:
variables
:
-
$EXTENDED !=
null
clean
:
stage
:
clean
...
...
@@ -281,13 +218,4 @@ clean:
# - openstack stack list
# after_script:
# - sleep 20 # artifically wait a bit to make sure it is really dead
-
echo "cleanup stack"
-
sleep
30
-
echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script
:
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
only
:
variables
:
-
$EXTENDED !=
null
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