summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-06-04 16:22:44 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-06-04 16:22:44 +0100
commit51c8badf57d3f8e00e1d78c6690dbf2cd8d94f2f (patch)
treea9226a3c095d85fae837b2ce320f1b83dfc3de75
parent5c70a3828009074900a657b4cd88d7b482ffab49 (diff)
downloadgp-packaging-tools-51c8badf57d3f8e00e1d78c6690dbf2cd8d94f2f.tar.bz2
Release package view
-rwxr-xr-xjapi/release-view38
1 files changed, 38 insertions, 0 deletions
diff --git a/japi/release-view b/japi/release-view
new file mode 100755
index 0000000..329c9e8
--- /dev/null
+++ b/japi/release-view
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+. ./jenkins.conf
+
+ACTION="update"
+./jenkins get-view "Release Unstable" 2>/dev/null >/dev/null || ACTION="create"
+
+(
+ cat <<EOF
+<hudson.model.ListView>
+ <name>Release Unstable</name>
+ <description>Binary package generators for CI builds on unstable</description>
+ <filterExecutors>false</filterExecutors>
+ <filterQueue>false</filterQueue>
+ <properties class="hudson.model.View$PropertyList"/>
+ <jobNames>
+ <comparator class="hudson.util.CaseInsensitiveComparator"/>
+EOF
+ for PKG in $(echo $JOBS); do
+ echo "<string>gp-binary-release-unstable-$PKG</string>"
+ done
+ cat <<EOF
+ </jobNames>
+ <jobFilters/>
+ <columns>
+ <hudson.views.StatusColumn/>
+ <hudson.views.WeatherColumn/>
+ <hudson.views.JobColumn/>
+ <hudson.views.LastSuccessColumn/>
+ <hudson.views.LastFailureColumn/>
+ <hudson.views.LastDurationColumn/>
+ <hudson.views.BuildButtonColumn/>
+ </columns>
+ <recurse>false</recurse>
+ <statusFilter>true</statusFilter>
+</hudson.model.ListView>
+EOF
+) | ./jenkins $ACTION-view "Release Unstable"