Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Aparapi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luis Mendes
Aparapi
Commits
1e641a46
There was an error fetching the commit references. Please try again later.
Commit
1e641a46
authored
4 years ago
by
Jeffrey Phillips Freeman
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-3
8 additions, 3 deletions
.gitlab-ci.yml
.m2/settings.xml
+15
-0
15 additions, 0 deletions
.m2/settings.xml
with
23 additions
and
3 deletions
.gitlab-ci.yml
+
8
−
3
View file @
1e641a46
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
:
...
...
This diff is collapsed.
Click to expand it.
.m2/settings.xml
0 → 100644
+
15
−
0
View file @
1e641a46
<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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment