Questions tagged [api4jenkins]

3 questions
2
votes
1 answer

How to pass parameters to Jenkins' API with Python and api4jenkins?

I'm having trouble with Jenkins' API while using Python 3.10.2 with Ubuntu LTS 20.4 with Jenkins 2.361 with api4jenkins 1.11 as the wrapper for the API. My main trouble is passing parameters to a Task. I'm able to start the task, and I'm doing as…
Alex Turner
  • 698
  • 6
  • 16
1
vote
1 answer

Jenkins api4jenkins download last build job console output

I am trying to get the Jenkins last successful build output using api4jenkins library. I can get the build number, but unable to find the option to download consoletext. Is that option available in this framework? if not any other way to download…
sfgroups
  • 18,151
  • 28
  • 132
  • 204
0
votes
0 answers

api4jenkins (python) : how to get the link to git/bitbucket repo the job uses ( and other extended properties)?

I am trying to use the api4jenkins module in python, to build stats on Jenkins jobs. I need to access a few of the job properties, like the URL of the git repo used, as seen in the UI ( here Source Code Management \ Git \ Repositories \ Repository…
Roodseuk
  • 81
  • 1
  • 3