Skip to content

Commit b1daac3

Browse files
Merge pull request #7 from Vigilnz/api_integration
- Fixed the issues raised by jenkins community
2 parents f40bd75 + 52e9cef commit b1daac3

File tree

6 files changed

+78
-39
lines changed

6 files changed

+78
-39
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* @jenkinsci/.-plugin-developers
2+
* @jenkinsci/vigilnz-security-plugin-developers

.github/release-drafter.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.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 }}

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.mvn/maven.config

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

pom.xml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
<!-- Plugin Name -->
1919
<name>Vigilnz Security</name>
20-
<description>Vigilnz Security Plugin integrates security scanning capabilities into Jenkins. Run CVE, SAST, SBOM, and other security scans as part of your CI/CD pipeline.</description>
20+
<description>Vigilnz Security Plugin integrates security scanning capabilities into Jenkins. Run CVE, SAST, SBOM,
21+
and other security scans as part of your CI/CD pipeline.
22+
</description>
2123
<url>https://github.com/${gitHubRepo}</url>
2224
<licenses>
2325
<license>
@@ -32,18 +34,18 @@
3234
<tag>${scmTag}</tag>
3335
<url>https://github.com/${gitHubRepo}</url>
3436
</scm>
35-
36-
<developers>
37-
<developer>
38-
<id>vigilnz</id>
39-
<name>Vigilnz Team</name>
40-
<email>[email protected]</email>
41-
</developer>
42-
</developers>
37+
38+
<!-- <developers>-->
39+
<!-- <developer>-->
40+
<!-- <id>vigilnz</id>-->
41+
<!-- <name>Vigilnz Team</name>-->
42+
<!-- <email>[email protected]</email>-->
43+
<!-- </developer>-->
44+
<!-- </developers>-->
4345

4446
<properties>
4547
<revision>1.0</revision>
46-
<changelist></changelist>
48+
<changelist>999999-SNAPSHOT</changelist>
4749
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
4850
<jenkins.baseline>2.516</jenkins.baseline>
4951
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
@@ -52,15 +54,14 @@
5254
<spotless.check.skip>false</spotless.check.skip>
5355
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>
5456
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
55-
<hpi.bundledArtifacts>jackson-annotations,jackson-core,jackson-databind</hpi.bundledArtifacts>
5657
</properties>
5758

5859
<dependencyManagement>
5960
<dependencies>
6061
<dependency>
6162
<groupId>io.jenkins.tools.bom</groupId>
6263
<artifactId>bom-${jenkins.baseline}.x</artifactId>
63-
<version>5659.vecf9e2dc5a_ed</version>
64+
<version>5750.vec44cb_c78352</version>
6465
<type>pom</type>
6566
<scope>import</scope>
6667
</dependency>
@@ -87,7 +88,7 @@
8788
<dependency>
8889
<groupId>org.jenkins-ci.plugins</groupId>
8990
<artifactId>credentials</artifactId>
90-
<version>1337.v60b_d7b_c7b_c9f</version>
91+
<!-- <version>1337.v60b_d7b_c7b_c9f</version>-->
9192
</dependency>
9293

9394
<!-- Pipeline Step API -->
@@ -112,10 +113,15 @@
112113
<scope>provided</scope>
113114
</dependency>
114115

116+
<!-- <dependency>-->
117+
<!-- <groupId>com.fasterxml.jackson.core</groupId>-->
118+
<!-- <artifactId>jackson-databind</artifactId>-->
119+
<!-- <version>2.20.1</version>-->
120+
<!-- </dependency>-->
121+
115122
<dependency>
116-
<groupId>com.fasterxml.jackson.core</groupId>
117-
<artifactId>jackson-databind</artifactId>
118-
<version>2.20.1</version>
123+
<groupId>org.jenkins-ci.plugins</groupId>
124+
<artifactId>jackson2-api</artifactId>
119125
</dependency>
120126

121127
</dependencies>

0 commit comments

Comments
 (0)