Skip to content

Commit

Permalink
setup the cd for plugin (#168)
Browse files Browse the repository at this point in the history
* setup the cd for plugin

* add missing setting for the cd
  • Loading branch information
LinuxSuRen committed Aug 22, 2023
1 parent 3f5e152 commit ebf31aa
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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.6</version>
</extension>
</extensions>
4 changes: 3 additions & 1 deletion .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
-Pconsume-incrementals
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parent>

<artifactId>localization-zh-cn</artifactId>
<version>1.0.26-SNAPSHOT</version>
<version>${changelist}</version>
<packaging>hpi</packaging>
<name>Localization: Chinese (Simplified)</name>
<url>https://github.com/jenkinsci/localization-zh-cn-plugin</url>
Expand All @@ -17,11 +17,12 @@
<connection>scm:git:ssh://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<tag>localization-zh-cn-1.0.25</tag>
<tag>${scmTag}</tag>
</scm>

<properties>
<jenkins.version>2.387.3</jenkins.version>
<changelist>999999-SNAPSHOT</changelist>
</properties>

<repositories>
Expand Down

0 comments on commit ebf31aa

Please sign in to comment.