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
f3e197e9
Commit
f3e197e9
authored
5 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
resolved merge conflicts
parent
840ccd6e
No related branches found
No related tags found
1 merge request
!297
Cicd merge back
Changes
1
Pipelines
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 @
f3e197e9
...
@@ -100,16 +100,6 @@ ansible_create_cluster_stage:
...
@@ -100,16 +100,6 @@ ansible_create_cluster_stage:
-
echo do it again
-
echo do it again
-
ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem master_playbook.yml
-
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
:
tests
:
stage
:
tests
stage
:
tests
...
@@ -142,33 +132,6 @@ 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 NFSNodes "files/inventory.$STACKNAME" "../gc_key.pem"
-
bash -e ./tests/run_tests.sh SQLNodes "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
:
extended
:
stage
:
extended
stage
:
extended
tags
:
tags
:
...
@@ -185,17 +148,7 @@ extended:
...
@@ -185,17 +148,7 @@ extended:
variables
:
variables
:
-
$EXTENDED !=
null
-
$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
:
manual_cluster_spawn
:
stage
:
push_button_spawn_cluster
stage
:
push_button_spawn_cluster
tags
:
tags
:
...
@@ -220,22 +173,6 @@ manual_cluster_spawn:
...
@@ -220,22 +173,6 @@ manual_cluster_spawn:
only
:
only
:
refs
:
refs
:
-
"
cicd"
-
"
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
:
clean
:
stage
:
clean
stage
:
clean
...
@@ -281,13 +218,4 @@ clean:
...
@@ -281,13 +218,4 @@ clean:
# - openstack stack list
# - openstack stack list
# after_script:
# after_script:
# - sleep 20 # artifically wait a bit to make sure it is really dead
# - 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.
Andreas Hamacher
@handreas
mentioned in commit
f332ccb3
·
4 years ago
mentioned in commit
f332ccb3
mentioned in commit f332ccb3b2ccb7e5a1bd1ed8193a4e13b7705548
Toggle commit list
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