Skip to content

Commit

Permalink
Merge pull request #4 from jenkinsci/feature/adding-cd
Browse files Browse the repository at this point in the history
making changes to support the Jenkins CD flow
  • Loading branch information
TueDissingWork authored Jan 24, 2024
2 parents 1d58912 + 869e15b commit 5085534
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/release-drafter.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ buildPlugin(
configurations: [
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])
])
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>io.jenkins.plugins</groupId>
<artifactId>azure-kubernetes-credentials</artifactId>
<version>${revision}${changelist}</version>
<version>${changelist}</version>
<packaging>hpi</packaging>
<name>Azure Kubernetes Credentials</name>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
Expand All @@ -26,8 +26,7 @@
<url>https://github.com/${gitHubRepo}</url>
</scm>
<properties>
<revision>1.0</revision>
<changelist>-SNAPSHOT</changelist>
<changelist>999999-SNAPSHOT</changelist>
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<jenkins.version>2.414.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
Expand Down

0 comments on commit 5085534

Please sign in to comment.