Age | Commit message (Collapse) | Author |
|
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
|
|
This in particular fixes multiple "Parameters" entries on build page.
Change-Id: Ic665d62018837de3565dbeb6d446cccfd7076170
|
|
Per new conventions where ID == host name.
Change-Id: Ie2e20cb8fe1d35118da63006c95eea05e03f1b72
|
|
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
|
|
Change-Id: I9a565006e72858e81b419723b1b24ee6137efc0b
|
|
Change-Id: Ic6bdfec62fb4e8e8144fb7b5f5edcfeb32b9ff53
|
|
Change-Id: I6f3a661500e3c6cd1eb274e3006b981b75b4acb0
|
|
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
|
|
Change-Id: I7df225b553c0e884e939a05290fe8f5f89e0ce26
|
|
Change-Id: I58a43b09d191e443f09860fef3a5bdd1d4a3edee
|
|
PUBLISH_KEY was already used by linaro-cp.py tool for publishing API v1.
Change-Id: Ic69b31cd7bb00a0a8110052588e8f9ed0c0af39c
|
|
Well, so far we don't allow to configure these values per-job, so these defaults
should account for all jobs.
Change-Id: I942dddb4edf2e555bc103904ba196f9df755960c
|
|
Change-Id: I11123bb6ed94bb913edafd4109d7254b5a777e85
|
|
It takes quite a lot of time for "connection timed out" errors.
Change-Id: I073a18b47e9c600b5979c37c9498be0b42917344
|
|
Change-Id: Ia5755ba031d7acbbaba0c6ce5a9fe008a5ddb347
|
|
Change-Id: I07dc341d822496382d589a18c2dbd360ac17d5ca
|
|
What remains is actual requesting of one-time token.
Change-Id: I30c765405f2e6d37cdfe28dccbf3db6a23d5f552
|
|
|