This commit is contained in:
Tim Jacomb 2022-01-27 10:43:48 +00:00 committed by GitHub
parent 44b59a0fc7
commit e8cfa3473c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 144 additions and 51 deletions

View File

@ -5,7 +5,7 @@ updates:
schedule: schedule:
interval: weekly interval: weekly
open-pull-requests-limit: 10 open-pull-requests-limit: 10
ignore: - package-ecosystem: github-actions
- dependency-name: org.jenkins-ci.main:jenkins-core directory: /
versions: schedule:
- ">= 0" interval: weekly

View File

@ -1,3 +1 @@
_extends: .github _extends: .github
name-template: v$NEXT_MINOR_VERSION 🌈
tag-template: configuration-as-code-$NEXT_MINOR_VERSION

59
.github/workflows/cd.yaml vendored Normal file
View File

@ -0,0 +1,59 @@
# 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:
validate:
runs-on: ubuntu-latest
outputs:
should_release: ${{ steps.verify-ci-status.outputs.result == 'success' && steps.interesting-categories.outputs.interesting == 'true' }}
steps:
- name: Verify CI status
uses: jenkins-infra/verify-ci-status-action@v1.2.0
id: verify-ci-status
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
output_result: true
- name: Release Drafter
uses: release-drafter/release-drafter@v5
if: steps.verify-ci-status.outputs.result == 'success'
with:
name: next
tag: next
version: next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check interesting categories
uses: jenkins-infra/interesting-category-action@v1.0.0
id: interesting-categories
if: steps.verify-ci-status.outputs.result == 'success'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
runs-on: ubuntu-latest
needs: [validate]
if: needs.validate.outputs.should_release == 'true'
steps:
- name: Check out
uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v2.5.0
with:
distribution: temurin
java-version: 8
- name: Release
uses: jenkins-infra/jenkins-maven-cd-action@v1.2.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

View File

@ -1,7 +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"> <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 https://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension> <extension>
<groupId>io.jenkins.tools.incrementals</groupId> <groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId> <artifactId>git-changelist-maven-extension</artifactId>
<version>1.2</version> <version>1.3</version>
</extension> </extension>
</extensions> </extensions>

View File

@ -1,2 +1,3 @@
-Pconsume-incrementals -Pconsume-incrementals
-Pmight-produce-incrementals -Pmight-produce-incrementals
-Dchangelist.format=%d.v%s

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.jenkins.configuration-as-code</groupId> <groupId>io.jenkins.configuration-as-code</groupId>
<version>${revision}${changelist}</version> <version>${changelist}</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -13,7 +13,8 @@
<properties> <properties>
<maven.deploy.skip>true</maven.deploy.skip> <!-- no need to be deployed during release, this is a test-only module --> <maven.deploy.skip>true</maven.deploy.skip> <!-- no need to be deployed during release, this is a test-only module -->
<jackson.version>2.12.4</jackson.version> <jackson.version>2.13.1</jackson.version>
<enforcer.skip>true</enforcer.skip> <!-- I give up, too much effort to maintain enforcer here, should probably try clear out all enforcer only deps and see if it works -->
<netty.version>4.1.72.Final</netty.version> <netty.version>4.1.72.Final</netty.version>
<jenkins.version>2.319.1</jenkins.version> <jenkins.version>2.319.1</jenkins.version>
<junixsocket.version>2.4.0</junixsocket.version> <junixsocket.version>2.4.0</junixsocket.version>
@ -73,6 +74,11 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.apache.ivy</groupId>
<artifactId>ivy</artifactId>
<version>2.5.0</version>
</dependency>
<dependency> <dependency>
<groupId>org.jenkins-ci.plugins</groupId> <groupId>org.jenkins-ci.plugins</groupId>
@ -409,7 +415,7 @@
<dependency> <dependency>
<groupId>org.antlr</groupId> <groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId> <artifactId>antlr4-runtime</artifactId>
<version>4.9.2</version> <version>4.9.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jenkins-ci.plugins</groupId> <groupId>org.jenkins-ci.plugins</groupId>
@ -418,7 +424,12 @@
<dependency> <dependency>
<groupId>jaxen</groupId> <groupId>jaxen</groupId>
<artifactId>jaxen</artifactId> <artifactId>jaxen</artifactId>
<version>1.2.0</version> <exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
@ -437,7 +448,7 @@
<dependency> <dependency>
<groupId>org.jenkins-ci.plugins</groupId> <groupId>org.jenkins-ci.plugins</groupId>
<artifactId>slack</artifactId> <artifactId>slack</artifactId>
<version>2.48</version> <version>602.v0da_f7458945d</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
@ -458,6 +469,18 @@
<artifactId>custom-tools-plugin</artifactId> <artifactId>custom-tools-plugin</artifactId>
<version>0.8</version> <version>0.8</version>
</dependency> </dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.4.7</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<groupId>org.jenkins-ci.plugins</groupId> <groupId>org.jenkins-ci.plugins</groupId>
<artifactId>gitlab-plugin</artifactId> <artifactId>gitlab-plugin</artifactId>
@ -491,14 +514,14 @@
<dependency> <dependency>
<groupId>org.jsoup</groupId> <groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId> <artifactId>jsoup</artifactId>
<version>1.14.2</version> <version>1.14.3</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.vladsch.flexmark</groupId> <groupId>com.vladsch.flexmark</groupId>
<artifactId>flexmark-all</artifactId> <artifactId>flexmark-all</artifactId>
<version>0.50.42</version> <version>0.62.2</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
@ -552,16 +575,36 @@
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.8</version> <version>2.8.8</version>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
</dependency>
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-core</artifactId>
<version>4.0.0-m029</version>
</dependency>
<dependency>
<groupId>io.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>4.7.2</version>
</dependency>
<dependency> <dependency>
<groupId>com.squareup.okhttp3</groupId> <groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId> <artifactId>logging-interceptor</artifactId>
<version>3.14.9</version> <version>4.9.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.squareup.okhttp3</groupId> <groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId> <artifactId>okhttp</artifactId>
<version>4.9.2</version> <version>4.9.2</version>
</dependency> </dependency>
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>symbol-annotation</artifactId>
<version>1.21</version>
</dependency>
<dependency> <dependency>
<groupId>com.github.docker-java</groupId> <groupId>com.github.docker-java</groupId>
@ -661,7 +704,7 @@
<dependency> <dependency>
<groupId>com.google.errorprone</groupId> <groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId> <artifactId>error_prone_annotations</artifactId>
<version>2.9.0</version> <version>2.10.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.protobuf</groupId> <groupId>com.google.protobuf</groupId>
@ -686,7 +729,7 @@
<dependency> <dependency>
<groupId>jaxen</groupId> <groupId>jaxen</groupId>
<artifactId>jaxen</artifactId> <artifactId>jaxen</artifactId>
<version>1.1.6</version> <version>1.2.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
@ -772,7 +815,7 @@
<dependency> <dependency>
<groupId>org.json</groupId> <groupId>org.json</groupId>
<artifactId>json</artifactId> <artifactId>json</artifactId>
<version>20210307</version> <version>20211205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>joda-time</groupId> <groupId>joda-time</groupId>

View File

@ -9,9 +9,3 @@ jdk:
mavenGlobalConfig: mavenGlobalConfig:
globalSettingsProvider: "standard" globalSettingsProvider: "standard"
settingsProvider: "standard" settingsProvider: "standard"
msTestInstallation:
installations:
- defaultArgs: "/category:SmokeTests"
home: "C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\MSTest.exe"
name: "MSTest test"
omitNoIsolation: true

View File

@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>io.jenkins.configuration-as-code</groupId> <groupId>io.jenkins.configuration-as-code</groupId>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<version>${revision}${changelist}</version> <version>${changelist}</version>
<relativePath>..</relativePath>
</parent> </parent>
<groupId>io.jenkins</groupId> <groupId>io.jenkins</groupId>
<artifactId>configuration-as-code</artifactId> <artifactId>configuration-as-code</artifactId>
<version>${revision}${changelist}</version> <version>${changelist}</version>
<packaging>hpi</packaging> <packaging>hpi</packaging>
<name>Configuration as Code Plugin</name> <name>Configuration as Code Plugin</name>
@ -49,7 +48,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>io.jenkins.tools.bom</groupId> <groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.249.x</artifactId> <artifactId>bom-2.289.x</artifactId>
<version>${plugin-bom.version}</version> <version>${plugin-bom.version}</version>
<scope>import</scope> <scope>import</scope>
<type>pom</type> <type>pom</type>
@ -65,7 +64,7 @@
<dependency> <dependency>
<groupId>org.json</groupId> <groupId>org.json</groupId>
<artifactId>json</artifactId> <artifactId>json</artifactId>
<version>20210307</version> <version>20211205</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.code.findbugs</groupId> <groupId>com.google.code.findbugs</groupId>

22
pom.xml
View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.jenkins-ci.plugins</groupId> <groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId> <artifactId>plugin</artifactId>
<version>4.29</version> <version>4.33</version>
<relativePath /> <relativePath />
</parent> </parent>
<groupId>io.jenkins.configuration-as-code</groupId> <groupId>io.jenkins.configuration-as-code</groupId>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<version>${revision}${changelist}</version> <version>${changelist}</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
@ -19,13 +19,13 @@
</modules> </modules>
<properties> <properties>
<revision>1.55.2</revision> <changelist>999999-SNAPSHOT</changelist>
<changelist>-SNAPSHOT</changelist> <gitHubRepo>jenkinsci/configuration-as-code-plugin</gitHubRepo>
<jenkins.version>2.249.1</jenkins.version> <jenkins.version>2.289.3</jenkins.version>
<java.level>8</java.level> <java.level>8</java.level>
<tagNameFormat>configuration-as-code-@{project.version}</tagNameFormat> <tagNameFormat>configuration-as-code-@{project.version}</tagNameFormat>
<useBeta>true</useBeta> <useBeta>true</useBeta>
<plugin-bom.version>950.v396cb834de1e</plugin-bom.version> <plugin-bom.version>1117.v62a_f6a_01de98</plugin-bom.version>
</properties> </properties>
<name>Configuration as Code Parent</name> <name>Configuration as Code Parent</name>
@ -35,14 +35,14 @@
<licenses> <licenses>
<license> <license>
<name>MIT License</name> <name>MIT License</name>
<url>http://opensource.org/licenses/MIT</url> <url>https://opensource.org/licenses/MIT</url>
</license> </license>
</licenses> </licenses>
<scm> <scm>
<connection>scm:git:git://github.com/jenkinsci/configuration-as-code-plugin.git</connection> <connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/configuration-as-code-plugin.git</developerConnection> <developerConnection>scm:git:git@github.com:${gitHubRepo}.git</developerConnection>
<url>https://github.com/jenkinsci/configuration-as-code-plugin</url> <url>https://github.com/${gitHubRepo}</url>
<tag>${scmTag}</tag> <tag>${scmTag}</tag>
</scm> </scm>

View File

@ -1,10 +1,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.jenkins.configuration-as-code</groupId> <groupId>io.jenkins.configuration-as-code</groupId>
<version>${revision}${changelist}</version> <version>${changelist}</version>
<relativePath>..</relativePath>
</parent> </parent>
<artifactId>test-harness</artifactId> <artifactId>test-harness</artifactId>
@ -19,7 +18,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>io.jenkins.tools.bom</groupId> <groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.249.x</artifactId> <artifactId>bom-2.289.x</artifactId>
<version>${plugin-bom.version}</version> <version>${plugin-bom.version}</version>
<scope>import</scope> <scope>import</scope>
<type>pom</type> <type>pom</type>
@ -59,7 +58,7 @@
<dependency> <dependency>
<groupId>com.vladsch.flexmark</groupId> <groupId>com.vladsch.flexmark</groupId>
<artifactId>flexmark-all</artifactId> <artifactId>flexmark-all</artifactId>
<version>0.50.42</version> <version>0.62.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.stefanbirkner</groupId> <groupId>com.github.stefanbirkner</groupId>

View File

@ -3,8 +3,8 @@ package io.jenkins.plugins.casc.misc;
import com.vladsch.flexmark.ast.FencedCodeBlock; import com.vladsch.flexmark.ast.FencedCodeBlock;
import com.vladsch.flexmark.ast.util.TextCollectingVisitor; import com.vladsch.flexmark.ast.util.TextCollectingVisitor;
import com.vladsch.flexmark.parser.Parser; import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.profiles.pegdown.Extensions; import com.vladsch.flexmark.profile.pegdown.Extensions;
import com.vladsch.flexmark.profiles.pegdown.PegdownOptionsAdapter; import com.vladsch.flexmark.profile.pegdown.PegdownOptionsAdapter;
import com.vladsch.flexmark.util.ast.Node; import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.data.DataHolder; import com.vladsch.flexmark.util.data.DataHolder;
import com.vladsch.flexmark.util.data.MutableDataSet; import com.vladsch.flexmark.util.data.MutableDataSet;

View File

@ -1,5 +1,5 @@
tool: tool:
maven: mavenGlobalConfig:
settingsProvider: settingsProvider:
filePath: filePath:
path: /usr/share/maven-settings.xml path: /usr/share/maven-settings.xml