From a19e71641dcc2bc430157cee746cd339da22760b Mon Sep 17 00:00:00 2001 From: Tue Dissing Date: Tue, 23 Jan 2024 14:16:05 +0100 Subject: [PATCH 1/2] making changes to support the Jenkins CD flow --- .mvn/maven.config | 1 + Jenkinsfile | 2 +- pom.xml | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.mvn/maven.config b/.mvn/maven.config index 2a0299c..61cf4e5 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -1,2 +1,3 @@ -Pconsume-incrementals -Pmight-produce-incrementals +-Dchangelist.format=%d.v%s \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 09032da..8a2983d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,4 +8,4 @@ buildPlugin( configurations: [ [platform: 'linux', jdk: 21], [platform: 'windows', jdk: 17], -]) +]) \ No newline at end of file diff --git a/pom.xml b/pom.xml index ddbfbde..9f580f1 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ io.jenkins.plugins azure-kubernetes-credentials - ${revision}${changelist} + ${changelist} hpi Azure Kubernetes Credentials https://github.com/jenkinsci/${project.artifactId}-plugin @@ -26,8 +26,7 @@ https://github.com/${gitHubRepo} - 1.0 - -SNAPSHOT + 999999-SNAPSHOT 2.414.3 jenkinsci/${project.artifactId}-plugin From 869e15b782aa517df58a24f43d039e70d61cd230 Mon Sep 17 00:00:00 2001 From: Tue Dissing Date: Wed, 24 Jan 2024 10:47:08 +0100 Subject: [PATCH 2/2] configuring CD workflow and remove the release drafter --- .github/release-drafter.yml | 3 --- .github/workflows/cd.yaml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) delete mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/cd.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 8d01db4..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,3 +0,0 @@ -_extends: .github -tag-template: azure-kubernetes-credentials-plugin-$NEXT_MINOR_VERSION -name-template: Azure Kubernetes Credentials Plugin v$NEXT_PATCH_VERSION \ No newline at end of file diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 0000000..f371773 --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,19 @@ +# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins + +name: cd +on: + workflow_dispatch: + check_run: + types: + - completed + +permissions: + checks: read + contents: write + +jobs: + maven-cd: + uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1 + secrets: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}