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.34.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.33.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.32.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.31.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.30.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.29.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.29.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.27.2 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.27.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.27.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.26.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.25.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.25.0 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.6 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.5 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.4 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.3 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.2 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.1 lib/gitlab/qa/component/jira.rb
gitlab-qa-7.24.0 lib/gitlab/qa/component/jira.rb