aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-23Make own class for publishing params, and replace them on each invocation.HEADmasterPaul Sokolovsky
Replacing parameters on each invocation of build step is required to support requesting tokens from multiple servers in row to support complex publishing scenarios. Having a separate Java class for paramters is a pre-requisite for such replacing. AbstractBuild.replaceAction also requires fairly recent Jenkins core, so just bump dependency version to the current LTS we use. Change-Id: I01de367d0db22bcd0fd43476894a5d072161ac03
2015-10-23Set both parameters in a single ParametersAction.Paul Sokolovsky
This in particular fixes multiple "Parameters" entries on build page. Change-Id: Ic665d62018837de3565dbeb6d446cccfd7076170
2015-05-11Change default credentials ID to "snapshots.linaro.org".Paul Sokolovsky
Per new conventions where ID == host name. Change-Id: Ie2e20cb8fe1d35118da63006c95eea05e03f1b72
2015-04-24Allow to select target publishing server - via Jenkins Credentials subsys.Paul Sokolovsky
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
2015-04-10README.txt: More notes on hwo to build a project.Paul Sokolovsky
Change-Id: I9a565006e72858e81b419723b1b24ee6137efc0b
2015-04-07Release 1.1.Paul Sokolovsky
Change-Id: Ic6bdfec62fb4e8e8144fb7b5f5edcfeb32b9ff53
2015-04-07README: Add reference to Jenkins docs on build steps plugins.Paul Sokolovsky
Change-Id: I6f3a661500e3c6cd1eb274e3006b981b75b4acb0
2015-04-07Fix issue when build step is not availabel in WebUI for Matrix builds.Paul Sokolovsky
This change is actually more liberal and just allows this build step used with any kind of project, which hopefully won't hurt. Change-Id: Ia465d6d879df29f24f8dc6406e3c29b0c208cb58
2015-03-26Add README, providing basic facts and deployment instructions.Paul Sokolovsky
Change-Id: I7df225b553c0e884e939a05290fe8f5f89e0ce26
2014-10-29Release version 1.0.Paul Sokolovsky
Change-Id: I58a43b09d191e443f09860fef3a5bdd1d4a3edee
2014-10-21Rename parameter PUBLISH_KEY -> PUBLISH_TOKEN.Paul Sokolovsky
PUBLISH_KEY was already used by linaro-cp.py tool for publishing API v1. Change-Id: Ic69b31cd7bb00a0a8110052588e8f9ed0c0af39c
2014-10-14Make default token not-valid-before/after values configurable.Paul Sokolovsky
Well, so far we don't allow to configure these values per-job, so these defaults should account for all jobs. Change-Id: I942dddb4edf2e555bc103904ba196f9df755960c
2014-10-14Job-level help: mention name of environment var set (PUBLISH_KEY).Paul Sokolovsky
Change-Id: I11123bb6ed94bb913edafd4109d7254b5a777e85
2014-10-14Disable auto-retry for now.Paul Sokolovsky
It takes quite a lot of time for "connection timed out" errors. Change-Id: I073a18b47e9c600b5979c37c9498be0b42917344
2014-10-14Add global Jenkins config field for PubAPI URL.Paul Sokolovsky
Change-Id: Ia5755ba031d7acbbaba0c6ce5a9fe008a5ddb347
2014-10-14Implement getting a publishing token from REST service.Paul Sokolovsky
Change-Id: I07dc341d822496382d589a18c2dbd360ac17d5ca
2014-09-11Plugin skeleton which implements basic build step and configuration.Paul Sokolovsky
What remains is actual requesting of one-time token. Change-Id: I30c765405f2e6d37cdfe28dccbf3db6a23d5f552
2014-09-11Empty root commit.Paul Sokolovsky