Project

General

Profile

Download (407 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / app / lib / actions / foreman_pipeline / jenkins / get_version.rb @ be52ca64

1
module Actions
2
  module ForemanPipeline
3
    module Jenkins
4
      class GetVersion < Actions::EntryAction
5
        
6
        def run
7
          instance = ::ForemanPipeline::JenkinsInstance.find input[:id]
8
          output[:version] = instance.create_client.get_jenkins_version
9
        end
10

    
11
        def humanized_name
12
          "Get Jenkins CI version: %s" % input[:name]
13
        end
14
      end
15
    end
16
  end
17
end