Skip to content
Snippets Groups Projects
Commit 1e641a46 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Fixed CI to be able to deploy to central maven snapshots.

parent 4d617ae9
No related branches found
No related tags found
No related merge requests found
image: maven:latest image: maven:latest
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache: cache:
paths: paths:
- ~/.m2/repository/ - ~/.m2/repository/
- .m2/repository/
- target/ - target/
build: build:
stage: build stage: build
script: script:
- mvn compile - mvn $MAVEN_CLI_OPTS compile
tags: tags:
- general - general
test: test:
stage: test stage: test
script: script:
- mvn test - mvn $MAVEN_CLI_OPTS test
tags: tags:
- opencl - opencl
deploy: deploy:
stage: deploy stage: deploy
script: script:
- mvn -DskipTests=true deploy - mvn $MAVEN_CLI_OPTS -DskipTests=true deploy
tags: tags:
- general - general
only: only:
......
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<id>ossrh.snapshots</id>
<username>${env.MAVEN_REPO_USER}</username>
<password>${env.MAVEN_REPO_PASS}</password>
</server>
<server>
<id>ossrh</id>
<username>${env.MAVEN_REPO_USER}</username>
<password>${env.MAVEN_REPO_PASS}</password>
</server>
</servers>
</settings>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment