Skip to content

Commit

Permalink
Add demo Jenkinsfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsymhoven committed Apr 27, 2021
1 parent 10a0d97 commit b580ec8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
28 changes: 28 additions & 0 deletions etc/Jenkinsfile.custom
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
node {
stage ('Pull Request Monitoring - Dashboard Configuration') {
monitoring (
configuration:
'''
{
"plugins": {
"io.jenkins.plugins.monitoring.examples.First.View1": {
"width": 4,
"height": 4,
"color": "black"
},
"io.jenkins.plugins.monitoring.examples.First.View2": {
"width": 2,
"height": 4,
"color": "red"
},
"io.jenkins.plugins.monitoring.examples.Second": {
"width": 4,
"height": 2,
"color": "green"
}
}
}
'''
)
}
}
5 changes: 5 additions & 0 deletions etc/Jenkinsfile.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node {
stage ('Pull Request Monitoring - Dashboard Configuration') {
monitoring ( )
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<artifactId>pull-request-monitoring</artifactId>
<packaging>hpi</packaging>
<name>Pull Request Monitoring</name>
<version>1.0.4-beta-SNAPSHOT</version>
<version>${revision}${changelist}</version>
<description>
This plugin offers a possibility to display and aggregate the results (in the form of individual views) of a pull
request in a configurable dashboard. Views can only be accessed or displayed if the corresponding plugin fulfils
Expand All @@ -20,7 +20,7 @@
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>

<properties>
<revision>1.0.3-beta</revision>
<revision>1.0.4-beta</revision>
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.277.1</jenkins.version>
<java.level>8</java.level>
Expand Down

0 comments on commit b580ec8

Please sign in to comment.