Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 0432a3f

Browse files
committed
Merge remote-tracking branch 'jenkinsci/master' into dev_main
2 parents 707dece + caeb87c commit 0432a3f

File tree

5 files changed

+90
-12
lines changed

5 files changed

+90
-12
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
2+
---
3+
version: 2
4+
updates:
5+
- package-ecosystem: maven
6+
directory: /
7+
schedule:
8+
interval: monthly
9+
- package-ecosystem: github-actions
10+
directory: /
11+
schedule:
12+
interval: monthly

.github/workflows/cd.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
2+
#
3+
# Please find additional hints for individual trigger use case
4+
# configuration options inline this script below.
5+
#
6+
---
7+
name: cd
8+
on:
9+
workflow_dispatch:
10+
inputs:
11+
validate_only:
12+
required: false
13+
type: boolean
14+
description: |
15+
Run validation with release drafter only
16+
→ Skip the release job
17+
# Note: Change this default to true,
18+
# if the checkbox should be checked by default.
19+
default: false
20+
###### Opting for manual release trigger so commented check_run trigger
21+
# If you don't want any automatic trigger in general, then
22+
# the following check_run trigger lines should all be commented.
23+
# Note: Consider the use case #2 config for 'validate_only' below
24+
# as an alternative option!
25+
# check_run:
26+
# types:
27+
# - completed
28+
29+
permissions:
30+
checks: read
31+
contents: write
32+
33+
jobs:
34+
maven-cd:
35+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
36+
with:
37+
###### Opting for a manual release trigger so updated validate_only accordingly
38+
# Comment / uncomment the validate_only config appropriate to your preference:
39+
#
40+
# Use case #1 (automatic release):
41+
# - Let any successful Jenkins build trigger another release,
42+
# if there are merged pull requests of interest
43+
# - Perform a validation only run with drafting a release note,
44+
# if manually triggered AND inputs.validate_only has been checked.
45+
#
46+
# validate_only: ${{ inputs.validate_only == true }}
47+
#
48+
# Alternative use case #2 (no automatic release):
49+
# - Same as use case #1 - but:
50+
# - Let any check_run trigger a validate_only run.
51+
# => enforce the release job to be skipped.
52+
#
53+
validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
54+
secrets:
55+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
56+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

.mvn/extensions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<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">
2+
<extension>
3+
<groupId>io.jenkins.tools.incrementals</groupId>
4+
<artifactId>git-changelist-maven-extension</artifactId>
5+
<version>1.8</version>
6+
</extension>
7+
</extensions>

.mvn/maven.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-Pconsume-incrementals
2+
-Pmight-produce-incrementals
3+
-Dchangelist.format=%d.v%s

pom.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010

1111
<artifactId>matlab</artifactId>
12-
<version> 2.16.1-SNAPSHOT</version>
12+
<version>${changelist}</version>
1313
<packaging>hpi</packaging>
1414

1515
<name>MATLAB Plugin</name>
@@ -45,19 +45,19 @@
4545
</pluginRepositories>
4646

4747
<scm>
48-
<connection>scm:git:ssh://github.com/jenkinsci/matlab-plugin.git</connection>
49-
<developerConnection>scm:git:ssh://[email protected]/jenkinsci/matlab-plugin.git</developerConnection>
50-
<url>https://github.com/jenkinsci/matlab-plugin</url>
51-
<tag>HEAD</tag>
48+
<connection>scm:git:ssh://github.com/${gitHubRepo}.git</connection>
49+
<developerConnection>scm:git:ssh://[email protected]/${gitHubRepo}.git</developerConnection>
50+
<url>https://github.com/${gitHubRepo}</url>
51+
<tag>${scmTag}</tag>
5252
</scm>
5353

54-
<properties>
55-
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
56-
<jenkins.baseline>2.387</jenkins.baseline>
57-
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
58-
<maven.compiler.source>11</maven.compiler.source>
59-
<maven.compiler.target>11</maven.compiler.target>
60-
</properties>
54+
<properties>
55+
<changelist>999999-SNAPSHOT</changelist>
56+
<gitHubRepo>jenkinsci/matlab-plugin</gitHubRepo>
57+
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
58+
<jenkins.baseline>2.387</jenkins.baseline>
59+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
60+
</properties>
6161

6262
<dependencyManagement>
6363
<dependencies>

0 commit comments

Comments
 (0)