Gitlab CI timeout manual job

Viewed 667

I have a pipeline with 4 stages:

  • compile
  • test
  • package
  • deploy

The package stage is manual. I would like the pipeline to timeout if no manual action has been taken after x minutes. I know that there is a timeout option but it's only taken into account after the job started.

package_staging:
  image: maven:3.6.3-jdk-11
  stage: package
  script:
    - mvn $MAVEN_CLI_OPTS -DskipTests clean install -Pstaging
  only:
    - branches
  except:
    - master
    - /^release/.*$
  when: manual
0 Answers
Related