Skip to content

Commit

Permalink
Refresh plugin for October 2024 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Oct 18, 2024
1 parent 7cdb173 commit 408744a
Show file tree
Hide file tree
Showing 28 changed files with 2,223 additions and 2,669 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @jenkinsci/calendar-view-plugin-developers
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
---
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
24 changes: 24 additions & 0 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Jenkins Security Scan
# For more information, see: https://www.jenkins.io/doc/developer/security/scan/
---
name: Jenkins Security Scan

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
security-events: write
contents: read
actions: read

jobs:
security-scan:
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
with:
java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
# java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.
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.8</version>
</extension>
</extensions>
2 changes: 2 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
1 change: 0 additions & 1 deletion .mvn/wrapper/maven-wrapper.properties

This file was deleted.

Empty file added .mvn_exec_node
Empty file.
18 changes: 7 additions & 11 deletions .pmd.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

<rule ref="category/java/bestpractices.xml">
<exclude name="AccessorMethodGeneration" />
<exclude name="AvoidReassigningLoopVariables" />
<exclude name="WhileLoopWithLiteralBoolean" />
</rule>
<rule ref="category/java/codestyle.xml">
<!-- Operator precedence is hard and parentheses enhance readability -->
Expand All @@ -29,27 +31,21 @@
<exclude name="AvoidFinalLocalVariable" />
</rule>
<rule ref="category/java/design.xml">
<exclude name="CognitiveComplexity" />
<!-- "Tell, don't ask" is a good design principle,
but this rule is way too strict about it -->
<exclude name="LawOfDemeter" />
</rule>
<rule ref="category/java/design.xml/NcssCount">
<!-- Default values too low in PMD 6.4.0, fixed in PMD 6.5.0 -->
<properties>
<property name="methodReportLevel" value="60"/>
<property name="classReportLevel" value="1000"/>
</properties>
<exclude name="LoosePackageCoupling" />
</rule>
<rule ref="category/java/errorprone.xml">
<!-- Produces lots of false positives and the Java
compiler catches most of these anyway -->
<exclude name="DataflowAnomalyAnalysis"/>
<!-- Produces lots of false positives because it
doesn't check if Serializable is implemented -->
<exclude name="BeanMembersShouldSerialize" />
</rule>
<rule ref="category/java/multithreading.xml"/>
<rule ref="category/java/performance.xml"/>
<rule ref="category/java/performance.xml">
<exclude name="AvoidCalendarDateCreation" />
</rule>
<rule ref="category/java/security.xml"/>

</ruleset>
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
buildPlugin(platforms: ['linux'])
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: 21],
[platform: 'linux', jdk: 17],
])
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,21 @@ Clicking on a future build will lead to the job's detail page.
Clone the repository then execute the following in the project's root directory:

```
$ ./mvnw install
$ mvn install
```

This will install Java dependencies as well as a local node installation and npm dependencies.

You can now run the plugin in a Jenkins instance by executing the following:

```
$ ./mvnw hpi:run
$ mvn hpi:run
```

To watch JavaScript and CSS files using webpack:

```
$ ./npmw run dev
$ npm run dev
```

## Use Calendar View with Job DSL
Expand Down
Loading

0 comments on commit 408744a

Please sign in to comment.