aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-04-14 16:20:46 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2015-04-24 17:18:38 +0300
commit11f165401e4b4a942abe85c9053c673f8cacdeb5 (patch)
tree03bfe4805efdc26e1e2b9b6c9554702e6c255147 /src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly
parentfa1912fa32757806947790ab5eee36572ec93294 (diff)
downloadjenkins-plugin-linaro-pubapi-11f165401e4b4a942abe85c9053c673f8cacdeb5.tar.gz
Allow to select target publishing server - via Jenkins Credentials subsys.
To make this work, a new "Credential Domain" should be configured, with filter by adhoc "pubapi" URL schema. Within domain, using "Username with password" credential type. "Username" should be a publishing server though, and password - master publishing key. Additionally, for JJB usage, in "Advanced" section, a credential ID should be defined to have a form pubapi-<server_host>, e.g. pubapi-snapshots.linaro.org. Set PUBLISH_SERVER envvar based on publishing server selected by plugin. This value can be directly passed to --server param of linaro-cp tool, thus avoiding duplicating server name in 2 places, and confusion if they don't match. Also, other minor usability/diagnosing tweaks: - Log the fact that token was requested to build log. - If credential id for a job isn't set, use "pubapi-snapshots.linaro.org". (For compatibility with jobs configured for older plugin version.) Change-Id: I02d6a8fa48485c1f4ed2cb4e3b33d6c1170155ec
Diffstat (limited to 'src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly')
-rw-r--r--src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly b/src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly
index 137872f..4b222fe 100644
--- a/src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly
+++ b/src/main/resources/linaro/pubapi/LinaroPubAPIKey/global.jelly
@@ -1,12 +1,6 @@
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<f:section title="${%Linaro Publishing API}" name="linaropubapi">
- <f:entry title="${%API URL}" field="pubAPIURL">
- <f:textbox default="https://snapshots.linaro.org/api/v2/token/" />
- </f:entry>
- <f:entry title="${%Secret key}" field="pubAPISecretKey">
- <f:textbox/>
- </f:entry>
<f:entry title="${%Default token 'not valid before' (mins)}" field="defaultNotBefore">
<f:textbox default="5" />
</f:entry>