Skip to content

Commit

Permalink
Refresh plugin for March 2023 (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Mar 8, 2023
1 parent 065c0a5 commit ff51cfc
Show file tree
Hide file tree
Showing 82 changed files with 6,720 additions and 3,436 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @jenkinsci/build-monitor-plugin-developers
25 changes: 0 additions & 25 deletions .github/actions/setup-git/action.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins

name: cd
on:
workflow_dispatch:
check_run:
types:
- completed

permissions:
checks: read
contents: write

jobs:
maven-cd:
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
secrets:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
88 changes: 3 additions & 85 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,98 +8,16 @@ on:
types: [ opened, synchronize ]

jobs:

build:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
distribution: 'temurin'
cache: 'maven'

- name: Cache jenkins plugins
uses: actions/cache@v3
with:
path: build-monitor-acceptance/plugin_cache
key: jenkins-plugins-${{ hashFiles('build-monitor-acceptance/pom.xml') }}
restore-keys: |
jenkins-plugins-
- name: Setup git (master only)
uses: ./.github/actions/setup-git
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_user_email: ${{ secrets.RELEASE_GH_EMAIL }}
git_username: ${{ secrets.RELEASE_GH_USERNAME }}

- name: Set version (master only)
if: github.ref == 'refs/heads/master'
run: mvn --batch-mode release-candidate:updateVersion

- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify

- name: Read $version (master only)
if: github.ref == 'refs/heads/master'
run: cat build-monitor-plugin/target/classes/build-monitor.properties >> $GITHUB_ENV

- uses: actions/upload-artifact@v3
with:
retention-days: 3
name: artifacts
path: |
build-monitor-plugin/target/*.hpi
pom.xml
build-monitor-plugin/pom.xml
build-monitor-acceptance/pom.xml
build-monitor-acceptance/build-monitor-acceptance-base/pom.xml
build-monitor-acceptance/build-monitor-acceptance-latest/pom.xml
build-monitor-acceptance/build-monitor-acceptance-base/target/failsafe-reports/*-output.txt
build-monitor-acceptance/build-monitor-acceptance-latest/target/failsafe-reports/*-output.txt
- name: Create Release Branch (master only)
if: github.ref == 'refs/heads/master'
run: |
git checkout -b "release-${version}"
git commit -a -m "Release candidate v$version"
git push origin "release-$version"
- name: Setup repo.jenkins-ci.org (master only)
if: github.ref == 'refs/heads/master'
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
server-id: 'repo.jenkins-ci.org'
server-username: JENKINS_REPO_USERNAME
server-password: JENKINS_REPO_TOKEN

- name: Publish (master only)
if: github.ref == 'refs/heads/master'
env:
JENKINS_REPO_USERNAME: ${{ secrets.JENKINS_REPO_USERNAME }}
JENKINS_REPO_TOKEN: ${{ secrets.JENKINS_REPO_TOKEN }}
run: |
mvn --batch-mode deploy:deploy-file \
-DpomFile=build-monitor-plugin/pom.xml \
-Dfile=build-monitor-plugin/target/build-monitor-plugin.hpi \
-Dfiles=build-monitor-plugin/target/build-monitor-plugin.jar \
-Dtypes=jar \
-Dclassifiers="" \
-DrepositoryId=repo.jenkins-ci.org \
-Durl=https://repo.jenkins-ci.org/releases/
mvn --batch-mode deploy:deploy-file \
-DpomFile=pom.xml \
-Dfile=pom.xml \
-DrepositoryId=repo.jenkins-ci.org \
-Durl=https://repo.jenkins-ci.org/releases/
run: mvn -B -V -e -ntp -U clean verify
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ work

node
node_modules
plugin_cache

use-node
.DS_Store

chromedriver.exe

!.travis.yml

build-monitor-plugin/src/main/webapp/styles/index.css
build-monitor-plugin/src/main/webapp/styles/main.js
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.6</version>
</extension>
</extensions>
3 changes: 3 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Build Monitor Plugin provides a highly visible view of the status of selected Je
It easily accommodates different computer screen sizes and is ideal as an Extreme Feedback Device to be displayed on a screen on your office wall.
(Inspired by the no longer maintained [RadiatorView](https://wiki.jenkins-ci.org/display/JENKINS/Radiator+View+Plugin) plugin).

[![Build Status](https://github.com/jan-molak/jenkins-build-monitor-plugin/workflows/Release%20Pipeline/badge.svg)](https://github.com/jan-molak/jenkins-build-monitor-plugin/actions)
[![Build Status](https://github.com/jenkinsci/build-monitor-plugin/workflows/Release%20Pipeline/badge.svg)](https://github.com/jenkinsci/build-monitor-plugin/actions)
[![Join the chat at https://gitter.im/jenkins-build-monitor-plugin/Lobby](https://badges.gitter.im/jenkins-build-monitor-plugin/Lobby.svg)](https://gitter.im/jenkins-build-monitor-plugin/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Have a question? Perhaps it's already been answered - check the [FAQ](#faq) section below.
Expand All @@ -25,7 +25,7 @@ Current functionality of the Build Monitor plugin:
* Supports [Pipeline Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin), so that the currently executing stage(s) are shown.
* The number of columns and size of the font used is easily customisable, making it trivial to accommodate screens of different sizes.
* UI configuration is stored in a cookie, making it possible to display different number of columns and using different font size on each of the screens at your office.
* Can work in a colour-blind-friendly mode; [learn more](https://github.com/jan-molak/jenkins-build-monitor-plugin/issues/30#issuecomment-35849019)
* Can work in a colour-blind-friendly mode; [learn more](https://github.com/jenkinsci/build-monitor-plugin/issues/30#issuecomment-35849019)

All the previous releases together with their change logs are [listed here](https://bitly.com/JBMReleases).

Expand All @@ -40,8 +40,8 @@ The standard is currently supported by [most modern web browsers](http://caniuse

Do you find Build Monitor useful? Give it a star! &#9733;

Found a bug? Raise [an issue](https://github.com/jan-molak/jenkins-build-monitor-plugin/issues?state=open)
or submit a pull request ([start with this mini-dev guide](https://github.com/jan-molak/jenkins-build-monitor-plugin/wiki/Development-Guide), it might come in handy).
Found a bug? Raise [an issue](https://github.com/jenkinsci/build-monitor-plugin/issues?state=open)
or submit a pull request ([start with this mini-dev guide](https://github.com/jenkinsci/build-monitor-plugin/wiki/Development-Guide), it might come in handy).

Have feedback? Let me know on twitter: [@JanMolak](https://twitter.com/JanMolak)

Expand All @@ -62,7 +62,7 @@ Simple, right? :-) You can have as many Build Monitor Views as you want - the mo

To stay up-to-date with the project news - [follow @JanMolak on twitter](https://twitter.com/JanMolak).

If you'd like to know what's coming next - have a look at the project's [kanban board](https://waffle.io/jan-molak/jenkins-build-monitor-plugin).
If you'd like to know what's coming next - have a look at the project's [kanban board](https://waffle.io/jenkinsci/build-monitor-plugin).
Here's how the columns work:

* Ideas - ideas up for discussion. If you'd like to see any of them making it into the Build Monitor project - vote on them or submit a pull request.
Expand Down Expand Up @@ -99,7 +99,7 @@ You have several options here:
1. get a bigger screen ...

### Red and green colours are lovely, but I'm colour blind ...
There's a colour blind mode you can [enable in the Settings](https://github.com/jan-molak/jenkins-build-monitor-plugin/issues/30#issuecomment-35849019)
There's a colour blind mode you can [enable in the Settings](https://github.com/jenkinsci/build-monitor-plugin/issues/30#issuecomment-35849019)

## Open Source Software Used

Expand All @@ -112,7 +112,5 @@ There's a colour blind mode you can [enable in the Settings](https://github.com/
## Friends of Build Monitor

Build Monitor is continuously delivered to a Jenkins near you thanks to:
* the time and commitment of [the author](http://smartcodeltd.co.uk/) and [the contributors](https://github.com/jan-molak/jenkins-build-monitor-plugin/graphs/contributors)
* a battery of browsers provided by [BrowserStack](https://www.browserstack.com) and powering the [acceptance tests](/build-monitor-acceptance/src/test/java)

[![tested on BrowserStack](docs/browserstack-logo.png)](http://bit.ly/JBMBS)
* the time and commitment of [the author](http://smartcodeltd.co.uk/) and [the contributors](https://github.com/jenkinsci/build-monitor-plugin/graphs/contributors)
* the [acceptance tests](/build-monitor-acceptance/src/test/java)
Loading

0 comments on commit ff51cfc

Please sign in to comment.