Skip to content

Commit 1c48051

Browse files
committed
Changes for automated plugin release.
1 parent 8f32500 commit 1c48051

File tree

6 files changed

+76
-2
lines changed

6 files changed

+76
-2
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: weekly

.github/release-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_extends: .github

.github/workflows/cd.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
2+
3+
name: cd
4+
on:
5+
workflow_dispatch:
6+
check_run:
7+
types:
8+
- completed
9+
10+
jobs:
11+
validate:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
should_release: ${{ steps.verify-ci-status.outputs.result == 'success' && steps.interesting-categories.outputs.interesting == 'true' }}
15+
steps:
16+
- name: Verify CI status
17+
uses: jenkins-infra/[email protected]
18+
id: verify-ci-status
19+
with:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
output_result: true
22+
23+
- name: Release Drafter
24+
uses: release-drafter/release-drafter@v5
25+
if: steps.verify-ci-status.outputs.result == 'success'
26+
with:
27+
name: next
28+
tag: next
29+
version: next
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Check interesting categories
34+
uses: jenkins-infra/[email protected]
35+
id: interesting-categories
36+
if: steps.verify-ci-status.outputs.result == 'success'
37+
with:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
40+
release:
41+
runs-on: ubuntu-latest
42+
needs: [validate]
43+
if: needs.validate.outputs.should_release == 'true'
44+
steps:
45+
- name: Check out
46+
uses: actions/checkout@v3
47+
with:
48+
fetch-depth: 0
49+
50+
- name: Set up JDK 8
51+
uses: actions/setup-java@v3
52+
with:
53+
distribution: temurin
54+
java-version: 8
55+
56+
- name: Release
57+
uses: jenkins-infra/[email protected]
58+
with:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
61+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ test-*
66
.DS_Store
77
*.orig
88
/examples
9+
TEST-*

.mvn/maven.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-Pconsume-incrementals
22
-Pmight-produce-incrementals
3+
-Dchangelist.format=%d.v%s

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<relativePath />
3333
</parent>
3434
<artifactId>xcode-plugin</artifactId>
35-
<version>${revision}${changelist}</version>
35+
<version>${revision}-${changelist}</version>
3636
<packaging>hpi</packaging>
3737
<name>Xcode integration</name>
3838
<description>This plugin adds the ability to call Xcode command line tools to automate build and packaging iOS applications (iPhone, iPad, ...).</description>
@@ -144,7 +144,7 @@
144144
</dependencies>
145145
<properties>
146146
<revision>2.0.17</revision>
147-
<changelist>-SNAPSHOT</changelist>
147+
<changelist>999999-SNAPSHOT</changelist>
148148
<gitHubRepo>jenkinsci/xcode-plugin</gitHubRepo>
149149
<jenkins.version>2.319.1</jenkins.version>
150150
</properties>

0 commit comments

Comments
 (0)