diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..03b4d66
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,12 @@
+# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
+
+version: 2
+updates:
+- package-ecosystem: maven
+ directory: /
+ schedule:
+ interval: monthly
+- package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: monthly
diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml
new file mode 100644
index 0000000..eaf3ef5
--- /dev/null
+++ b/.github/workflows/cd.yaml
@@ -0,0 +1,53 @@
+# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
+#
+# Please find additional hints for individual trigger use case
+# configuration options inline this script below.
+#
+name: cd
+on:
+ workflow_dispatch:
+ inputs:
+ validate_only:
+ required: false
+ type: boolean
+ description: |
+ Run validation with release drafter only
+ → Skip the release job
+ # Note: Change this default to true,
+ # if the checkbox should be checked by default.
+ default: false
+ # If you don't want any automatic trigger in general, then
+ # the following check_run trigger lines should all be commented.
+ # Note: Consider the use case #2 config for 'validate_only' below
+ # as an alternative option!
+ check_run:
+ types:
+ - completed
+
+permissions:
+ checks: read
+ contents: write
+
+jobs:
+ maven-cd:
+ uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
+ with:
+ # Comment / uncomment the validate_only config appropriate to your preference:
+ #
+ # Use case #1 (automatic release):
+ # - Let any successful Jenkins build trigger another release,
+ # if there are merged pull requests of interest
+ # - Perform a validation only run with drafting a release note,
+ # if manually triggered AND inputs.validate_only has been checked.
+ #
+ validate_only: ${{ inputs.validate_only == true }}
+ #
+ # Alternative use case #2 (no automatic release):
+ # - Same as use case #1 - but:
+ # - Let any check_run trigger a validate_only run.
+ # => enforce the release job to be skipped.
+ #
+ #validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
+ secrets:
+ MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
+ MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
new file mode 100644
index 0000000..4e0774d
--- /dev/null
+++ b/.mvn/extensions.xml
@@ -0,0 +1,7 @@
+
+
+ io.jenkins.tools.incrementals
+ git-changelist-maven-extension
+ 1.8
+
+
diff --git a/.mvn/maven.config b/.mvn/maven.config
new file mode 100644
index 0000000..f7daf60
--- /dev/null
+++ b/.mvn/maven.config
@@ -0,0 +1,3 @@
+-Pconsume-incrementals
+-Pmight-produce-incrementals
+-Dchangelist.format=%d.v%s
diff --git a/pom.xml b/pom.xml
index fa35577..34509f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
leastload
- 3.1.0-SNAPSHOT
+ ${changelist}
hpi
Least Load plugin
@@ -32,13 +32,15 @@
- scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git
- scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git
- https://github.com/jenkinsci/${project.artifactId}-plugin
- HEAD
+ scm:git:git://github.com/${gitHubRepo}.git
+ scm:git:git@github.com:${gitHubRepo}.git
+ https://github.com/${gitHubRepo}
+ ${scmTag}
+ 999999-SNAPSHOT
+ jenkinsci/leastload-plugin
Max
Low