Verified Commit 4a9a694a authored by Yannick Schinko's avatar Yannick Schinko
Browse files

Added ci scripts

parent a63e2ba3
Pipeline #396 failed with stages
in 39 seconds
image: maven:latest
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
MAVEN_REPO_NAME: "auradev-snapshots"
stages:
- build
- deploy
cache:
paths:
- .m2/repository/
- target/
build:
stage: build
tags:
- docker
script:
- mvn $MAVEN_CLI_OPTS compile
deploy-snapshot:
stage: deploy
tags:
- docker
script:
- mvn $MAVEN_CLI_OPTS deploy
deploy-release:
stage: deploy
tags:
- docker
variables:
MAVEN_REPO_NAME: "auradev-releases"
script:
- mvn $MAVEN_CLI_OPTS deploy
when: manual
<settings
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<id>auradev-releases</id>
<username>${env.MAVEN_REPO_USER}</username>
<password>${env.MAVEN_REPO_PASS}</password>
</server>
<server>
<id>auradev-snapshots</id>
<username>${env.MAVEN_REPO_USER}</username>
<password>${env.MAVEN_REPO_PASS}</password>
</server>
</servers>
</settings>
......@@ -155,4 +155,12 @@
<version>2.3.1-20150720.092759-2</version>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>${env.MAVEN_REPO_NAME}</id>
<name>AuraDev Repo</name>
<url>https://maven.aura-dev.team/repository/${env.MAVEN_REPO_NAME}/</url>
</repository>
</distributionManagement>
</project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment