summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-16 16:55:36 -0600
committermo khan <mo.khan@gmail.com>2020-03-18 10:29:39 -0600
commit8d7b66cbe0dc446c0c5b0ac2a996612d378aa435 (patch)
treeef838be79ee16a0dd87475be8472dc8279b4a077
parente073b2a28460fa5fbdd0851940b3ebccdf64ce38 (diff)
Add gitlab-maven as a server with the CI_JOB_TOKEN for authentication
-rw-r--r--config/.m2/settings.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/.m2/settings.xml b/config/.m2/settings.xml
index 8c17f15..c36a363 100644
--- a/config/.m2/settings.xml
+++ b/config/.m2/settings.xml
@@ -16,4 +16,17 @@
</repositories>
</profile>
</profiles>
+ <servers>
+ <server>
+ <id>gitlab-maven</id>
+ <configuration>
+ <httpHeaders>
+ <property>
+ <name>Job-Token</name>
+ <value>${env.CI_JOB_TOKEN}</value>
+ </property>
+ </httpHeaders>
+ </configuration>
+ </server>
+ </servers>
</settings>