Skip to content

Commit

Permalink
Revert "16591 jenkins_version: New check for version of the queried J…
Browse files Browse the repository at this point in the history
…enkins instance"

This reverts commit 99663b5.

There are plans to revive this in different form in the future.
See CMK-19279

Change-Id: Id1e3371dc3154d38097393945e23ff9ecde761eb
  • Loading branch information
okin committed Dec 30, 2024
1 parent 42a54ec commit 089ccc7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 396 deletions.
20 changes: 0 additions & 20 deletions .werks/16591.md

This file was deleted.

158 changes: 0 additions & 158 deletions cmk/plugins/jenkins/agent_based/jenkins_version.py

This file was deleted.

14 changes: 0 additions & 14 deletions cmk/plugins/jenkins/checkman/jenkins_version

This file was deleted.

10 changes: 0 additions & 10 deletions cmk/plugins/jenkins/lib/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ def handle_request(args, sections):

# labels = {}

jenkins_version = None

session = requests.Session()
session.auth = (args.user, args.password)

Expand All @@ -128,10 +126,6 @@ def handle_request(args, sections):

return 1

# Jenkins version usually comes with every response. We need it once.
if jenkins_version is None:
jenkins_version = response.headers.get("X-Jenkins")

# Things might go wrong if authentication is missing.
if response.status_code != 200:
sys.stderr.write("Could not fetch data from Jenkins. Details: %s\n" % response)
Expand Down Expand Up @@ -183,10 +177,6 @@ def handle_request(args, sections):
# sys.stdout.write("<<<labels:sep(0)>>>\n")
# sys.stdout.write("%s\n" % json.dumps(labels))

sys.stdout.write("<<<jenkins_version:sep(0)>>>\n")
if jenkins_version:
sys.stdout.write(f"{jenkins_version}\n")

return 0


Expand Down
31 changes: 0 additions & 31 deletions cmk/plugins/jenkins/rulesets/jenkins_version.py

This file was deleted.

Loading

0 comments on commit 089ccc7

Please sign in to comment.