Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
Gitlab CI deploy to mvn.efficios.com
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
  • Loading branch information
mjeanson committed Jun 6, 2018
1 parent f1dcdf7 commit eb6bf0d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variables:
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
# Docker images to use for jdk8 / jdk10
MAVEN_IMAGE_JDK8: registry.gitlab.com/lttng/lttng-scope/lttng-scope/maven:3.5-jdk-8-javafx
MAVEN_IMAGE_JDK10: registry.gitlab.com/lttng/lttng-scope/lttng-scope/maven:3.5-jdk-10-javafx
Expand Down Expand Up @@ -82,14 +82,9 @@ verify:jdk8:
deploy:jdk8:
# Use stage test here, so the pages job may later pickup the created site.
stage: test
# Run verify at the moment, we might deploy in the future
script:
- 'mvn $MAVEN_CLI_OPTS verify'
- 'mvn $MAVEN_CLI_OPTS deploy'
- 'bash <(curl -s https://codecov.io/bash)'
only:
- master
# Archive up the built documentation site.
#artifacts:
# paths:
# - target/staging
image: $MAVEN_IMAGE_JDK8
15 changes: 15 additions & 0 deletions .m2/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<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>efficios-releases-repo</id>
<username>${env.MVN_REPO_USER}</username>
<password>${env.MVN_REPO_PASS}</password>
</server>
<server>
<id>efficios-snapshots-repo</id>
<username>${env.MVN_REPO_USER}</username>
<password>${env.MVN_REPO_PASS}</password>
</server>
</servers>
</settings>

0 comments on commit eb6bf0d

Please sign in to comment.