Skip to content

Resolve "Add Jenkins integration"

Guillaume MARTINEZ requested to merge 116-add-jenkins-integration-2 into develop

What does this MR do and why?

feat(integration.Jenkins): Add Jenkins integration for updating monitors fix(*.form): Allow URL without TLD (like http://localhost:8080/some/path)

Screenshots or screen recordings

Example of code to retreive the last status of a Jenkins job :

from api4jenkins import Jenkins

instance = Jenkins('https://jenkins.example.org', auth=('myself', 'token_value'))

job = instance.get_job('path/to/my/jenkins/job')

build = job.get_last_completed_build()

print(build.result)

Result value can be : SUCCESS, UNSTABLE, FAILURE

MR acceptance checklist

  • My code follows the style guidelines of this project
  • I ran pylint and other linters for modified files
  • I have performed a self-review of my own code and tested it
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My code needed automated testing. I have added them (this is optional task)
  • I have added user readable comment in the CHANGELOG

Closes #116 (closed)

Edited by Guillaume MARTINEZ

Merge request reports