Commit 4815336c authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Removal of container when it exits

parent 164cfed6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -24,7 +24,7 @@ Validate API Robot Test Suite:
  stage: validation
  stage: validation
  script:
  script:
    - echo 'Validate API Robot Test Suite'
    - echo 'Validate API Robot Test Suite'
    - docker run -v "$(pwd):/home/etsi/dev/robot" api-tests-validation:latest "bash" -c  "/home/etsi/dev/scripts/validate.sh $CI_COMMIT_BRANCH"
    - docker run --rm -v "$(pwd):/home/etsi/dev/robot" api-tests-validation:latest "bash" -c  "/home/etsi/dev/scripts/validate.sh $CI_COMMIT_BRANCH"
      
      
Generate API Robot Test Suite docx:
Generate API Robot Test Suite docx:
  stage: generation
  stage: generation
@@ -33,7 +33,7 @@ Generate API Robot Test Suite docx:
  script:
  script:
    - echo 'Generate API Robot Test Suite docx'
    - echo 'Generate API Robot Test Suite docx'
    - tagTargetBranch=$(git branch -a --contains tags/$CI_COMMIT_REF_NAME | grep -E "Release-.|([0-9]{1}(\.[0-9]){2}){1}(-dev){0,1}" | head -n 1)
    - tagTargetBranch=$(git branch -a --contains tags/$CI_COMMIT_REF_NAME | grep -E "Release-.|([0-9]{1}(\.[0-9]){2}){1}(-dev){0,1}" | head -n 1)
    - docker run -v "$(pwd):/home/etsi/dev/robot" -u $(id -u):$(id -g) api-tests-validation:latest "bash" -c  "/home/etsi/dev/scripts/generate.sh $tagTargetBranch"
    - docker run --rm -v "$(pwd):/home/etsi/dev/robot" -u $(id -u):$(id -g) api-tests-validation:latest "bash" -c  "/home/etsi/dev/scripts/generate.sh $tagTargetBranch"
  artifacts:
  artifacts:
    when: on_success
    when: on_success
    paths:
    paths: