Skip to content

Instantly share code, notes, and snippets.

@ambud
Created August 16, 2016 05:50
Show Gist options
  • Select an option

  • Save ambud/a6f2f2d83f80dc1d3d305348c30936d7 to your computer and use it in GitHub Desktop.

Select an option

Save ambud/a6f2f2d83f80dc1d3d305348c30936d7 to your computer and use it in GitHub Desktop.
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
@sebclick
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment