1

I'm trying to follow the advice given in Set Hudson Build Description via Web API but I'm getting a 403 presumably because the request has to be authenticated. Since the script is being run from an authenticated Jenkins session, how do I pass those credentials through?

Community
  • 1
  • 1
Noel Yap
  • 18,822
  • 21
  • 92
  • 144

2 Answers2

1

Looks like you need to pass user and api token in your request. Here's an example (not in Python, but I guess you can manage the translation).

malenkiy_scot
  • 16,415
  • 6
  • 64
  • 87
0

Use the 'Execute system Groovy script' Build task which executes in the same VM so you don't have to re-authenticate or manually pass through tokens or credentials.

Noel Yap
  • 18,822
  • 21
  • 92
  • 144