Skip to content
Snippets Groups Projects
Commit 0f7c99ef authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

tests on the manual pipeline keyword

parent 13f71e2c
No related branches found
No related tags found
3 merge requests!297Cicd merge back,!284Cicd,!282CICD
...@@ -8,9 +8,9 @@ stages: ...@@ -8,9 +8,9 @@ stages:
# - integration_test_downstream # working but unwanted here # - integration_test_downstream # working but unwanted here
# - trigger_pipeline_in_B # working but unwanted here # - trigger_pipeline_in_B # working but unwanted here
- lint - lint
- delete_stack_manual #- delete_stack_manual
- extended - extended
- heat_test #- heat_test
- heat - heat
- ansible_create_cluster_stage - ansible_create_cluster_stage
- push_button_spawn_cluster - push_button_spawn_cluster
...@@ -27,31 +27,31 @@ stages: ...@@ -27,31 +27,31 @@ stages:
# script: # script:
# - "curl --request POST --form token=${CI_JOB_TOKEN} --form ref=master https://gitlab.erc.monash.edu.au/api/v4/projects/1085/trigger/pipeline" # ID is from pysshauthz # - "curl --request POST --form token=${CI_JOB_TOKEN} --form ref=master https://gitlab.erc.monash.edu.au/api/v4/projects/1085/trigger/pipeline" # ID is from pysshauthz
heat_test: # heat_test:
stage: heat_test # stage: heat_test
allow_failure: false # allow_failure: false
tags: # tags:
- heat # - heat
before_script: # before_script:
- echo "$GC_KEY" > gc_key.pem # - echo "$GC_KEY" > gc_key.pem
- chmod 400 gc_key.pem # - chmod 400 gc_key.pem
- echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh # - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
- source ./$NECTAR_ALLOCATION-openrc.sh # - source ./$NECTAR_ALLOCATION-openrc.sh
- export HEAT_TEST_STACKNAME=_TESTING_HEAT # - export HEAT_TEST_STACKNAME=_TESTING_HEAT
- bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $HEAT_TEST_STACKNAME # - bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $HEAT_TEST_STACKNAME
- sleep 60 # - sleep 60
script: # script:
- echo "heat_test stage" # - echo "heat_test stage"
- source ./$NECTAR_ALLOCATION-openrc.sh # - source ./$NECTAR_ALLOCATION-openrc.sh
- bash -x ./CICD/heat/heatcicdwrapper.sh create $HEAT_TEST_STACKNAME # - bash -x ./CICD/heat/heatcicdwrapper.sh create $HEAT_TEST_STACKNAME
- openstack stack list # - openstack stack list
- bash -x ./CICD/heat/heatcicdwrapper.sh update $HEAT_TEST_STACKNAME # - bash -x ./CICD/heat/heatcicdwrapper.sh update $HEAT_TEST_STACKNAME
- openstack stack list # - openstack stack list
- bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $HEAT_TEST_STACKNAME # - bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $HEAT_TEST_STACKNAME
- 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
when: manual # when: manual
yamllint: yamllint:
stage: lint stage: lint
...@@ -64,20 +64,20 @@ yamllint: ...@@ -64,20 +64,20 @@ yamllint:
# - ansible-lint -c .yamllintconf.yaml -x ANSIBLE0002 master_playbook.yml # - ansible-lint -c .yamllintconf.yaml -x ANSIBLE0002 master_playbook.yml
- yamllint -c ./.yamllintheat.yaml ./heat - yamllint -c ./.yamllintheat.yaml ./heat
delete_stack_manual: # delete_stack_manual:
stage: delete_stack_manual # stage: delete_stack_manual
tags: # tags:
- heat # - heat
before_script: # before_script:
- echo "$GC_KEY" > gc_key.pem # - echo "$GC_KEY" > gc_key.pem
- chmod 400 gc_key.pem # - chmod 400 gc_key.pem
- echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh # - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
script: # script:
- echo "heat stage" # - echo "heat stage"
- source ./$NECTAR_ALLOCATION-openrc.sh # - source ./$NECTAR_ALLOCATION-openrc.sh
- openstack stack list # - openstack stack list
- bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME # - bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
when: manual # when: manual
ansiblelint: ansiblelint:
allow_failure: true allow_failure: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment