Also wondering what credentials I should use to trigger jobs FROM ci.adoptopenjdk.net TO ci.eclipse.org/temurin-compliance ? Plugin already installed on ci.adoptopenjdk.net server
Once the plugin is installed, access tokens can be configured on a job or global level.
Frederic Gurrchanged title from Enable Parameterized Remote Trigger plugin to trigger jobs on Temurin-compliance Jenkins server to [temurin-compliance] Enable Parameterized Remote Trigger plugin to trigger jobs on Temurin-compliance Jenkins server
changed title from Enable Parameterized Remote Trigger plugin to trigger jobs on Temurin-compliance Jenkins server to [temurin-compliance] Enable Parameterized Remote Trigger plugin to trigger jobs on Temurin-compliance Jenkins server
I misunderstood the functionality of the parameterized remote trigger plugin. I expected it to be required on the server side, which is not the case.
Also wondering what credentials I should use to trigger jobs FROM ci.adoptopenjdk.net TO ci.eclipse.org/temurin-compliance ? Plugin already installed on ci.adoptopenjdk.net server
You can set an authentication token in the job configuration of a build (Build Triggers -> Trigger builds remotely (e.g. from scripts)) on https://ci.eclipse.org/temurin-compliance. You should add the authentication token as a Jenkins credential on https://ci.adoptopenjdk.net.
Yes, and apologies, this may not have been the correct place to add this request, but I wanted to make you aware of our intent (and the plugin installed on temurin-compliance server may also be useful for something in the future, so not unwanted).
Eclispe jenkins server has password based access. So to trigger a job on it we need to first log in to the server and then build the job. For this to happen from a remote server, we need to provide credentials to it. As we would like to trigger the job from adoptium weekly/automatically a new specific functional/bot user may need to be created and correspondingly set the crendtials/token. The related blog I found https://www.tothenew.com/blog/jenkins-parameterized-remote-trigger-plugin/
Parameterized Remote Trigger Plugin trigger the build on a remote Jenkins Server by calling the URL on the remote server, which is exactly same as running curl with URL. So will hit the same issue.
On the EF Temurin-Compliance Jenkins instance please create an API token for your user under "Accounts icon" -> Configure -> API Token -> Add New token.
Test with curl:
curl -u "<user>:<api-token>" https://ci.eclipse.org/temurin-compliance/job/Sophia_test/buildWithParameters?token=RemoteTrigger -X POST
If there is no process to set up a Jenkins bot user is it possible to set a functional ID with a token? If that is also not possible we are asking to use a personal token of someone in Eclipse Foundation, which is more reasonable, safer and more stable.
@fgurr@mbarbero Is there some way we can find a way of getting a token that isn't tied to one of our users? It's always risky to have automation dependent on individuals' IDs so I feel we really need a different solution here.
As Sophia says, even if that is an EF infra team member's generated token with the required restricted access then that - from my perspective - would definitely be preferable as a solution instead of it being with a third part under the agreements for this project.