Skip to content

Commit

Permalink
Merge pull request #227 from alecharp/feature/prepare-plugin-for-cd
Browse files Browse the repository at this point in the history
Setup CD on plugin
  • Loading branch information
alecharp authored Oct 13, 2022
2 parents 0a1e1a5 + 0a7faf1 commit 674b462
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 17 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins

name: cd
on:
workflow_dispatch:
check_run:
types:
- completed

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 }}
12 changes: 0 additions & 12 deletions .github/workflows/release-drafter.yml

This file was deleted.

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.4</version>
</extension>
</extensions>
3 changes: 3 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-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 @@ -8,11 +8,14 @@

<artifactId>s3</artifactId>
<packaging>hpi</packaging>
<version>0.12.3-SNAPSHOT</version>
<version>${revision}${changelist}</version>
<name>Jenkins S3 publisher plugin</name>
<url>https://github.com/jenkinsci/s3-plugin</url>

<properties>
<revision>0.12.3</revision>
<changelist>-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/s3-plugin</gitHubRepo>
<jenkins.version>2.289.3</jenkins.version>
</properties>

Expand Down Expand Up @@ -48,10 +51,10 @@
</developers>

<scm>
<connection>scm:git:git://github.com/jenkinsci/s3-plugin.git</connection>
<developerConnection>scm:git:[email protected]:jenkinsci/s3-plugin.git</developerConnection>
<url>https://github.com/jenkinsci/s3-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>

<dependencies>
Expand Down

0 comments on commit 674b462

Please sign in to comment.