Loading .gitlab-ci.yml +9 −5 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ buildDebug: test: stage: release rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: always script: - ./gradlew test -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl" Loading Loading @@ -59,7 +59,7 @@ buildRelease: stage: release allow_failure: false rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: always - if: '$CI_COMMIT_REF_PROTECTED == "true"' when: always Loading Loading @@ -112,7 +112,7 @@ buildReleaseStable: lintRelease: extends: .lintReleaseDefault rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: always script: - ./gradlew lintRelease Loading @@ -127,11 +127,14 @@ publish-authdatalib: stage: publish needs: ["buildRelease"] rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: manual - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH when: manual script: - ./gradlew :auth-data-lib:build - ./gradlew :auth-data-lib:publish allow_failure: true pushToPrebuilt: Loading Loading @@ -175,10 +178,11 @@ publish-contracts: stage: publish needs: ["buildRelease"] rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: manual - if: '$CI_COMMIT_TAG !~ "/^$/"' when: always script: - ./gradlew :parental-control-data:build - ./gradlew :parental-control-data:publish allow_failure: true Loading
.gitlab-ci.yml +9 −5 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ buildDebug: test: stage: release rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: always script: - ./gradlew test -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl" Loading Loading @@ -59,7 +59,7 @@ buildRelease: stage: release allow_failure: false rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: always - if: '$CI_COMMIT_REF_PROTECTED == "true"' when: always Loading Loading @@ -112,7 +112,7 @@ buildReleaseStable: lintRelease: extends: .lintReleaseDefault rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: always script: - ./gradlew lintRelease Loading @@ -127,11 +127,14 @@ publish-authdatalib: stage: publish needs: ["buildRelease"] rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: manual - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH when: manual script: - ./gradlew :auth-data-lib:build - ./gradlew :auth-data-lib:publish allow_failure: true pushToPrebuilt: Loading Loading @@ -175,10 +178,11 @@ publish-contracts: stage: publish needs: ["buildRelease"] rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: $CI_MERGE_REQUEST_ID when: manual - if: '$CI_COMMIT_TAG !~ "/^$/"' when: always script: - ./gradlew :parental-control-data:build - ./gradlew :parental-control-data:publish allow_failure: true