You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .gitlab-ci.yml
+15-1
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,24 @@ cache:
12
12
# Cache the downloaded dependencies and plugins between builds.
13
13
- '$GRADLE_USER_HOME'
14
14
15
-
build:
15
+
build-job:
16
+
stage: build
16
17
script:
17
18
- $GRADLE build
19
+
20
+
test-job:
21
+
stage: test
22
+
script:
18
23
- $GRADLE test jacocoTestCoverageVerification
24
+
25
+
deploy-job:
26
+
stage: deploy
27
+
script:
19
28
- if [ $NEXUS_USER_NAME ]; then $GRADLE publish; fi
20
29
- if [ !$NEXUS_USER_NAME ]; then $GRADLE publishToMavenLocal; fi
30
+
31
+
sonar-job:
32
+
stage: deploy
33
+
allow_failure: true
34
+
script:
21
35
- if [ $SONAR_LOGIN ]; then $GRADLE -Dorg.gradle.jvmargs='-XX:MetaspaceSize=1024M -XX:MaxMetaspaceSize=1024M' jacocoTestReport sonar -Dsonar.host.url=$SONAR -Dsonar.login=${SONAR_LOGIN}; fi
0 commit comments