Skip to content

Commit 5abd90c

Browse files
committed
Initial Editor Search Jenkins plugin
0 parents  commit 5abd90c

22 files changed

Lines changed: 2110 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jenkinsci/editor-search-plugin-developers

.github/renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>jenkinsci/renovate-config"
5+
]
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Automatically approve and merge safe dependency updates
2+
on:
3+
- pull_request_target
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
jobs:
8+
auto-merge-safe-deps:
9+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/auto-merge-safe-deps.yml@v1

.github/workflows/cd.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
# If you don't want any automatic trigger in general, then
21+
# the following check_run trigger lines should all be commented.
22+
# Note: Consider the use case #2 config for 'validate_only' below
23+
# as an alternative option!
24+
check_run:
25+
types:
26+
- completed
27+
28+
permissions:
29+
checks: read
30+
contents: write
31+
32+
jobs:
33+
maven-cd:
34+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
35+
with:
36+
# Comment / uncomment the validate_only config appropriate to your preference:
37+
#
38+
# Use case #1 (automatic release):
39+
# - Let any successful Jenkins build trigger another release,
40+
# if there are merged pull requests of interest
41+
# - Perform a validation only run with drafting a release note,
42+
# if manually triggered AND inputs.validate_only has been checked.
43+
#
44+
validate_only: ${{ inputs.validate_only == true }}
45+
#
46+
# Alternative use case #2 (no automatic release):
47+
# - Same as use case #1 - but:
48+
# - Let any check_run trigger a validate_only run.
49+
# => enforce the release job to be skipped.
50+
#
51+
#validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
52+
secrets:
53+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
54+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Close BOM update PR if passing
2+
on:
3+
check_run:
4+
types:
5+
- completed
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
jobs:
10+
close-bom-if-passing:
11+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/close-bom-if-passing.yml@v1
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# More information about the Jenkins security scan can be found at the developer docs: https://www.jenkins.io/redirect/jenkins-security-scan/
2+
---
3+
name: Jenkins Security Scan
4+
on:
5+
push:
6+
branches:
7+
- "master"
8+
- "main"
9+
pull_request:
10+
types: [opened, synchronize, reopened]
11+
workflow_dispatch:
12+
13+
permissions:
14+
security-events: write
15+
contents: read
16+
actions: read
17+
18+
jobs:
19+
security-scan:
20+
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
21+
with:
22+
java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
23+
# java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
target
2+
3+
# mvn hpi:run
4+
work
5+
6+
# IntelliJ IDEA project files
7+
*.iml
8+
*.iws
9+
*.ipr
10+
.idea
11+
12+
# Eclipse project files
13+
.settings
14+
.classpath
15+
.project

.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 https://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.13</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

Jenkinsfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* See the documentation for more options:
3+
* https://github.com/jenkins-infra/pipeline-library/
4+
*/
5+
buildPlugin(
6+
forkCount: '1C', // run this number of tests in parallel for faster feedback. If the number terminates with a 'C', the value will be multiplied by the number of available CPU cores
7+
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
8+
configurations: [
9+
[platform: 'linux', jdk: 21],
10+
[platform: 'windows', jdk: 21],
11+
])

0 commit comments

Comments
 (0)