Skip to content

Commit c9f7bca

Browse files
committed
update gitlab-ci
1 parent c9a8a5b commit c9f7bca

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

Diff for: .gitlab-ci.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,27 @@ publish_job:
3636
- ci_settings.xml
3737
script:
3838
- |
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
3958
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 \
4160
-DrepositoryId=gitlab-maven \
4261
-Durl=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven
4362

Diff for: gitlab_settings.xml

-16
This file was deleted.

0 commit comments

Comments
 (0)