Sha256: f90aa7ffc9638471b3f3fb5b9978a440f309e6fdbe4cad6214600d49c4c17f75

Contents?: true

Size: 824 Bytes

Versions: 71

Compression:

Stored size: 824 Bytes

Contents

module Gitlab
  module QA
    module Component
      class Jira < Base
        DOCKER_IMAGE = 'registry.gitlab.com/gitlab-org/gitlab-qa/jira-gitlab'.freeze
        DOCKER_IMAGE_TAG = '8.8-project-and-issue'.freeze

        def name
          @name ||= "jira"
        end

        def instance
          raise 'Please provide a block!' unless block_given?

          super
        end

        def start
          docker.run(image: image, tag: tag) do |command|
            command << '-d '
            command << "--name #{name}"
            command << "--net #{network}"
            command << "--hostname #{hostname}"
            command << "--publish 8080:8080"
          end
        end

        def set_jira_hostname
          ::Gitlab::QA::Runtime::Env.jira_hostname = hostname
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
gitlab-qa-7.23.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.23.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.22.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.22.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.21.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.21.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.20.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.19.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.18.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.18.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.17.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.17.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.16.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.16.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.15.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.15.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.14.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.13.3 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.13.2 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.13.1 lib/gitlab/qa/component/jira.rb