Skip to content

Commit

Permalink
Merge pull request #69 from jenkinsci/conventions/cd
Browse files Browse the repository at this point in the history
Enable CD Releases
  • Loading branch information
sghill authored Sep 10, 2023
2 parents 22f42e1 + b812cc3 commit 4bd950e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-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
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 }}
7 changes: 7 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 4 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s

13 changes: 8 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@
</description>
<artifactId>naginator</artifactId>
<packaging>hpi</packaging>
<version>1.20-SNAPSHOT</version>
<version>${revision}.${changelist}</version>
<url>https://github.com/jenkinsci/naginator-plugin</url>

<scm>
<connection>scm:git:git://github.com/jenkinsci/naginator-plugin.git</connection>
<developerConnection>scm:git:[email protected]:jenkinsci/naginator-plugin.git</developerConnection>
<url>https://github.com/jenkinsci/naginator-plugin</url>
<tag>HEAD</tag>
<connection>scm:git:git://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
<url>https://github.com/${gitHubRepo}</url>
<tag>${scmTag}</tag>
</scm>

<properties>
<revision>1</revision>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/naginator-plugin</gitHubRepo>
<jenkins.version>2.375.4</jenkins.version>
</properties>

Expand Down

0 comments on commit 4bd950e

Please sign in to comment.