New way to make patch releases (#788)
* New way to make patch releases * Simplify release
This commit is contained in:
parent
9f3b087227
commit
425ce53853
|
@ -171,25 +171,6 @@ jobs:
|
||||||
command: ./gradlew -Prelease.useLastTag=true final
|
command: ./gradlew -Prelease.useLastTag=true final
|
||||||
no_output_timeout: 6h
|
no_output_timeout: 6h
|
||||||
|
|
||||||
patch_release:
|
|
||||||
<<: *defaults
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run: |
|
|
||||||
if [[ $(git tag --points-at HEAD | grep "^v") ]]; then
|
|
||||||
echo "Don't make patch release on commit which already has version tag"
|
|
||||||
circleci-agent step halt
|
|
||||||
fi
|
|
||||||
|
|
||||||
- attach_workspace:
|
|
||||||
at: .
|
|
||||||
|
|
||||||
- restore_cache:
|
|
||||||
<<: *cache_keys
|
|
||||||
|
|
||||||
- run: ./gradlew -Prelease.scope=patch final
|
|
||||||
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
build_test_deploy:
|
build_test_deploy:
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -254,61 +235,5 @@ workflows:
|
||||||
branches:
|
branches:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
tags:
|
tags:
|
||||||
# Only for major and minor releases
|
# As long as we don't have support branches, we release all tags in the same manner
|
||||||
only: /^v.*\.0$/
|
only: /^v.*$/
|
||||||
|
|
||||||
patch_release:
|
|
||||||
jobs:
|
|
||||||
- build:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: /\d+\.\d+\.x$/
|
|
||||||
|
|
||||||
- default_test_job:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
prefixTestTask: true
|
|
||||||
name: test_<< matrix.testTask >>
|
|
||||||
matrix:
|
|
||||||
parameters:
|
|
||||||
testTask: ["7", "8", "14"]
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: /\d+\.\d+\.x$/
|
|
||||||
|
|
||||||
- default_test_job:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
name: test_11
|
|
||||||
testTask: test jacocoTestReport jacocoTestCoverageVerification
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: /\d+\.\d+\.x$/
|
|
||||||
|
|
||||||
- default_test_job:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
name: test_latest
|
|
||||||
testTask: latestDepTest
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: /\d+\.\d+\.x$/
|
|
||||||
|
|
||||||
- muzzle:
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: /\d+\.\d+\.x$/
|
|
||||||
|
|
||||||
- patch_release:
|
|
||||||
requires:
|
|
||||||
- test_7
|
|
||||||
- test_8
|
|
||||||
- test_11
|
|
||||||
- test_14
|
|
||||||
- test_latest
|
|
||||||
- muzzle
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: /\d+\.\d+\.x$/
|
|
||||||
|
|
Loading…
Reference in New Issue