提交 20ae5b1b authored 作者: husishuai's avatar husishuai

test

上级 674a5b50
流水线 #250 已取消 于阶段
stages: stages:
- sonarqube-check - build
- test
- deploy
sonarqube-check: job_build:
stage: sonarqube-check stage: build
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script: script:
- echo "test...." - echo "Building the project..."
allow_failure: true - mvn clean install
only: only:
- master - master
job_test:
stage: test
script:
- echo "Running tests..."
- mvn test
only:
- master
- tags
job_deploy:
stage: deploy
script:
- echo "Deploying the application..."
- mvn deploy
only:
- master
when: manual
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论