temp
Charitha Goonetilleke 3 years ago
parent 86a4263b7f
commit 31abb4eb87

@ -0,0 +1,26 @@
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
cache:
paths:
- target/
build:
stage: build
script:
- rm -rf ~/.m2/repository/org/wso2/carbon/devicemgt
- rm -rf ~/.m2/repository/org/wso2/carbon/devicemgt-plugins
- rm -rf ~/.m2/repository/org/wso2/carbon/org/wso2/iot
- rm -rf ~/.m2/repository/io/entgra
- mvn $MAVEN_CLI_OPTS clean install
tags:
- OracleJDK1.8
deploy:
stage: deploy
script:
- mvn $MAVEN_CLI_OPTS deploy
only:
- master@entgra/community-product
tags:
- OracleJDK1.8

@ -0,0 +1,12 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>maven-snapshots</id>
<username>${env.MAVEN_REPO_USER}</username>
<password>${env.MAVEN_REPO_PASS}</password>
</server>
</servers>
</settings>
Loading…
Cancel
Save