File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # This workflow will deploy the plugin to the Jenkins Update Center
2- # Additional setup required: https://www.jenkins.io/redirect/continuous-delivery-of-plugins
3- name : CD
1+ # Continuous Delivery - releases automatically on every push to main
2+ name : cd
43
54on :
5+ push :
6+ branches :
7+ - main
68 workflow_dispatch :
7- check_run :
8- types :
9- - completed
10-
11- concurrency :
12- group : cd-release
13- cancel-in-progress : true
14-
15- permissions :
16- contents : write
17- pull-requests : write
189
1910jobs :
20- validate :
21- runs-on : ubuntu-latest
22- outputs :
23- should_release : ${{ steps.verify-ci-status.outputs.result == 'success' }}
24- steps :
25- - name : Verify CI status
26- uses : jenkins-infra/verify-ci-status-action@v1.2.2
27- id : verify-ci-status
28- with :
29- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30- output_result : true
31-
32- - name : Release Drafter
33- uses : release-drafter/release-drafter@v6
34- if : steps.verify-ci-status.outputs.result == 'success'
35- with :
36- name : next
37- tag : next
38- version : next
39- env :
40- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41-
4211 release :
43- runs-on : ubuntu-latest
44- needs : validate
45- if : needs.validate.outputs.should_release == 'true'
46- permissions :
47- contents : write
48- steps :
49- - name : Check out
50- uses : actions/checkout@v4
51- with :
52- fetch-depth : 0
53-
54- - name : Set up JDK 17
55- uses : actions/setup-java@v5
56- with :
57- distribution : ' temurin'
58- java-version : ' 17'
59-
60- - name : Release
61- uses : jenkins-infra/jenkins-maven-cd-action@v1
62- with :
63- MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
64- MAVEN_TOKEN : ${{ secrets.MAVEN_TOKEN }}
65- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12+ uses : jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
13+ with :
14+ validate_only : false
15+ secrets :
16+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
17+ MAVEN_TOKEN : ${{ secrets.MAVEN_TOKEN }}
You can’t perform that action at this time.
0 commit comments