last one cleans (for manual start after one stage failed)

This commit is contained in:
Martin Diehl 2017-05-11 21:02:10 +02:00
parent 6d4bb38f11
commit 5f90230dbd
2 changed files with 8 additions and 7 deletions

View File

@ -21,8 +21,8 @@ stages:
################################################################################################### ###################################################################################################
before_script: before_script:
- if [ $(awk "/$CI_PIPELINE_ID/{print NR}" $HOME/GitLabCI.queue)x == 'x' ]; then echo $CI_PIPELINE_ID >> $HOME/GitLabCI.queue; fi - if [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue)x == 'x' ]; then echo $CI_PIPELINE_ID >> $TESTROOT/GitLabCI.queue; fi
- while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $HOME/GitLabCI.queue) -ne 1 ];do sleep 5m; done - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) -ne 1 ];do sleep 5m; done
- source $DAMASKROOT/DAMASK_env.sh - source $DAMASKROOT/DAMASK_env.sh
- cd $DAMASKROOT/PRIVATE/testing - cd $DAMASKROOT/PRIVATE/testing
@ -36,7 +36,7 @@ variables:
#================================================================================================ #================================================================================================
# Shortcut names # Shortcut names
#================================================================================================ #================================================================================================
DAMASKROOT: "$HOME/GitLabCI_Pipeline_$CI_PIPELINE_ID/DAMASK" DAMASKROOT: "$TESTROOT/GitLabCI_Pipeline_$CI_PIPELINE_ID/DAMASK"
#================================================================================================ #================================================================================================
# Names of module files to load # Names of module files to load
@ -82,8 +82,8 @@ variables:
checkout: checkout:
stage: prepareAll stage: prepareAll
before_script: before_script:
- echo $CI_PIPELINE_ID >> $HOME/GitLabCI.queue - echo $CI_PIPELINE_ID >> $TESTROOT/GitLabCI.queue
- while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $HOME/GitLabCI.queue) -ne 1 ];do sleep 5m; done - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) -ne 1 ];do sleep 5m; done
script: script:
- mkdir -p $DAMASKROOT - mkdir -p $DAMASKROOT
- cd $DAMASKROOT - cd $DAMASKROOT
@ -492,6 +492,7 @@ mergeIntoMaster:
- git pull - git pull
- git merge master -s recursive -X ours -m "[skip ci] Merge branch 'master' into development" # only possible conflict is in VERSION file - git merge master -s recursive -X ours -m "[skip ci] Merge branch 'master' into development" # only possible conflict is in VERSION file
- git push origin development # development is unchanged (as master is based on it) but has updated VERSION file - git push origin development # development is unchanged (as master is based on it) but has updated VERSION file
- sed -i "/$CI_PIPELINE_ID/d" $TESTROOT/GitLabCI.queue
only: only:
- development - development
@ -501,7 +502,7 @@ removeLock:
before_script: before_script:
- echo 'Do nothing' - echo 'Do nothing'
when: always when: always
script: sed -i "/$CI_PIPELINE_ID/d" $HOME/GitLabCI.queue script: sed -i "/$CI_PIPELINE_ID/d" $TESTROOT/GitLabCI.queue
except: except:
- master - master
- release - release

@ -1 +1 @@
Subproject commit bc2d351db9d0fdc08b879c63f2667af34a6aab8b Subproject commit 3ba3671e3d0ec9ac1dcc6a5521822b4828574581