Skip to content

Commit 12c741a

Browse files
GitLab CI: Fix Master/Release Detection
-Split publishing task to master/develop profiles where master gets the -Prelease=true flag
1 parent 0b88063 commit 12c741a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.gitlab-ci.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ job_analyze_develop:
4242
tags:
4343
- docker
4444

45-
job_publish:
45+
job_publish_develop:
4646
stage: publish
4747
only:
4848
- develop
49-
- master
5049
script:
5150
- ./gradlew publish
5251
artifacts:
@@ -56,3 +55,15 @@ job_publish:
5655
tags:
5756
- docker
5857

58+
job_publish_master:
59+
stage: publish
60+
only:
61+
- master
62+
script:
63+
- ./gradlew publish -Prelease=true
64+
artifacts:
65+
paths:
66+
- swagger-confluence-core/build/libs/*.jar
67+
- swagger-confluence-gradle-plugin/build/libs/*.jar
68+
tags:
69+
- docker

0 commit comments

Comments
 (0)