File tree 2 files changed +20
-17
lines changed
2 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,27 @@ publish_job:
36
36
- ci_settings.xml
37
37
script :
38
38
- |
39
+ cat <<EOF >> ci_settings.xml
40
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
41
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
42
+ <servers>
43
+ <server>
44
+ <id>gitlab-maven</id>
45
+ <configuration>
46
+ <httpHeaders>
47
+ <property>
48
+ <name>Job-Token</name>
49
+ <value>${CI_JOB_TOKEN}</value>
50
+ </property>
51
+ </httpHeaders>
52
+ </configuration>
53
+ </server>
54
+ </servers>
55
+ </settings>
56
+ EOF
57
+ cat ci_settings.xml
39
58
mvn --quiet deploy:deploy-file -s gitlab_settings.xml -DpomFile=pom.xml \
40
- -Dfile=target/sonar-gitlab-plugin-* .jar \
59
+ -Dfile=target/sonar-gitlab-plugin-5.0.2-SNAPSHOT .jar \
41
60
-DrepositoryId=gitlab-maven \
42
61
-Durl=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven
43
62
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments