Skip to content

Add client to access release.gitlab.net

Dat Tang requested to merge dattang/add-release-client into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Content

  • Add client to access release.gitlab.net

As a part of gitlab-com/gl-infra/delivery#20289, we want to check what GitLab version is running on release.gitlab.net to make sure that the deployment to that environment during the release pipeline was successful.

This commit add a client for that environment, so we can check the version via an API call.

Testing

Check the GitLab version running on release.gitlab.net . (note that RELEASE_BOT_RELEASE_TOKEN should be provided as an environment variable).

2] pry(main)> ReleaseTools::GitlabReleaseClient.client.version
=> #<Gitlab::ObjectifiedHash:238260 {hash: {"version"=>"17.1.2-ee", "revision"=>"91c6434080c", "kas"=>{"enabled"=>true, "externalUrl"=>"wss://release.gitlab.net/-/kubernetes-agent/", "version"=>"17.1.2"}, "enterprise"=>true}}
2024-07-11 17:54:08.662723 D ReleaseTools::GitlabReleaseClient -- [HTTParty] [2024-07-11 17:54:08 +0200] 200 "GET https://release.gitlab.net/api/v4/version" - 
Edited by Dat Tang

Merge request reports