Sha256: e0434f4bb789391b7481b58df8f746c72d452ab69c8923b95739d9545bcd7ac8
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
module Jets::Git class Gitlab def params params = { git_system: 'gitlab', git_branch: git_branch, git_sha: git_sha, git_dirty: false, # git_message: nil, # git_version: nil, } params[:git_url] = git_url if git_url params end def git_branch ENV['CI_COMMIT_REF_NAME'] end def git_sha ENV['CI_COMMIT_SHA'] end def git_url host = ENV['CI_SERVER_URL'] || 'https://gitlab.com' full_repo = ENV['CI_PROJECT_PATH'] "#{host}/#{full_repo}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jets-git-0.2.1 | lib/jets/git/gitlab.rb |
jets-git-0.2.0 | lib/jets/git/gitlab.rb |