Update .gitlab-ci.yml file
This commit is contained in:
parent
47a3ed5adb
commit
8f614c34d5
1 changed files with 2 additions and 5 deletions
|
|
@ -34,17 +34,14 @@ cache:
|
||||||
|
|
||||||
# For merge requests do not `deploy` but only run `verify`.
|
# For merge requests do not `deploy` but only run `verify`.
|
||||||
# See https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
|
# See https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
|
||||||
.verify: &verify
|
.build: &verify
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
- upload artifacts
|
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- 'mvn $MAVEN_CLI_OPTS verify'
|
- 'mvn $MAVEN_CLI_OPTS verify'
|
||||||
except:
|
except:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
stage: upload artifacts
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml'
|
- 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml'
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue