I do not need help in how to call the HTTP API. Triggering a Jenkins job requires the Jenkins API token; my question is to how to have this Jenkins API token without hardcoding it in the script. The script is in a public git repo and I dont want the Jenkins API token available to everyone.
As Jenkins user and user API token are not available via Jenkins env variables, the solution I found is to put this data in a file (always in same path) in each Jenkins slave and the script opens the file to get the data. Regards, Alan Evangelista -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/56D649BB.1040004%40linux.vnet.ibm.com. For more options, visit https://groups.google.com/d/optout.