in Technology by
How to get the Jenkins version programmatically in Jobs/Pipelines or nodes other than master?

1 Answer

0 votes
by

To check the version of Jenkins, load the top-level page or any top-level Remote Access API path like the '.../api/*' page and then check for the 'X-Jenkins' response header.

This contains the version number of Jenkins, like "1.404". This is also a good way to check if an URL is a Jenkins URL.

Related questions

0 votes
    How Jenkins jobs can be Triggered/Stopped/Controlled programmatically?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    What are the types of Jenkins pipelines?...
asked Jul 16, 2021 in Technology by JackTerrance
0 votes
    How to download the Console log for a particular Jenkins build programmatically?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    How to install a Custom Jenkins Plugin or a Version of Plugin Not available in Jenkins Update Center?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    In Jenkins, is there a way to restrict the user to view only certain jobs? Only through "Project-based ... allows job restriction? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    _____________ is the master repository of jobs. 1. Software robot 2. Robot controller 3. Process recorder 4. Developer tools...
asked Aug 30, 2021 in Technology by JackTerrance
0 votes
    Explain the master-slave architecture of Jenkins....
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    What are the Continuous Integration tools, and why is Jenkins better than them?...
asked Oct 1, 2021 in Technology by JackTerrance
0 votes
    Background: I have an old web CMS that stored content in XML files, one XML file per page. I am ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    ________________ attacks are carried out from a location other than the real computer where the password reside ... Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Nov 1, 2021 in Education by JackTerrance
0 votes
    What is Artifact Archival & how to do it in Pipelines?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    I am trying to run a BigQueryOperator on GCC. I have already succeeded in running for BigQueryCreateEmptyTableOperator ... , content, uri=self.uri googleapiclient.errors.HttpError:...
asked May 22, 2022 in Education by JackTerrance
0 votes
    I have a scheduled UiPath job that keeps getting stuck in the 'pending' state in Orchestrator and never runs. ... more permanent fix? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what jobs can I get with Python? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    In a multiple choice question, there are four alternative answers of which one or more than one is correct A ... marks on it. Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
...