Skip to content

Commit

Permalink
Merge pull request #19 from FrogDevelopper/feature/cd
Browse files Browse the repository at this point in the history
Enabling incremental for CD
  • Loading branch information
igalg committed Dec 16, 2023
2 parents 106e62a + 97acd63 commit 9de263e
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
@@ -0,0 +1 @@
* @jenkinsci/multibranch-build-strategy-extension-plugin-developers
12 changes: 12 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,12 @@
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
19 changes: 19 additions & 0 deletions .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 }}
7 changes: 7 additions & 0 deletions .mvn/extensions.xml
@@ -0,0 +1,7 @@
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.7</version>
</extension>
</extensions>
3 changes: 3 additions & 0 deletions .mvn/maven.config
@@ -0,0 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
5 changes: 2 additions & 3 deletions pom.xml
Expand Up @@ -11,7 +11,7 @@

<groupId>igalg.jenkins.plugins</groupId>
<artifactId>multibranch-build-strategy-extension</artifactId>
<version>1.1.1-SNAPSHOT</version>
<version>${changelist}</version>
<packaging>hpi</packaging>
<name>Pipeline: Multibranch build strategy extension</name>

Expand All @@ -20,8 +20,7 @@
<url>https://wiki.jenkins.io/display/JENKINS/Multibranch+Build+Strategy+Extension+Plugin</url>

<properties>
<revision>1.1.0</revision>
<changelist>-SNAPSHOT</changelist>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/multibranch-build-strategy-extension</gitHubRepo>
<jenkins.version>2.319.3</jenkins.version>
<java.level>11</java.level>
Expand Down

0 comments on commit 9de263e

Please sign in to comment.