Created
August 16, 2016 05:50
-
-
Save ambud/a6f2f2d83f80dc1d3d305348c30936d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before_script: | |
| # if you are behind a proxy | |
| # - echo "Acquire::http::Proxy \"http://xyz:port\";" >> /etc/apt/apt.conf.d/01-proxy.conf | |
| - apt-get update -qq | |
| - curl -o maven.tgz http://mirror.symnds.com/software/Apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
| - tar xf maven.tgz | |
| stages: | |
| - build | |
| - stage | |
| - release | |
| - devdeployment | |
| build: | |
| stage: build | |
| script: | |
| - ./apache-maven-3.3.9/bin/mvn clean verify --settings settings.xml | |
| stage: | |
| stage: stage | |
| script: | |
| - ./apache-maven-3.3.9/bin/mvn clean deploy --settings settings.xml | |
| devdeployment: | |
| stage: devdeployment | |
| script: | |
| - ./apache-maven-3.3.9/bin/mvn clean package --settings settings.xml | |
| #release: | |
| # stage: release | |
| # script: | |
| # - ./apache-maven-3.3.9/bin/mvn release:clean release:prepare release:perform --settings settings.xml | |
| # when: manual |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Do you use the release stage ? With Jenkins, I can specify the release version but with gitlab-ci, I can't find how to do.