Skip to content

Expose ref, milestones, released_at to releaser-cli

What does this MR do?

Exposes additional CI keys as params for the releaser-cli.

Example yaml with the additional nodes:

release_job:
  stage: 'release'
  image: registry.gitlab.com/gitlab-org/release-cli:v0.2.0
  only: 'tags'
  script:
    - echo 'running release_job'
  release:
     name: 'Release $CI_COMMIT_SHA'
     description: 'Created using the release-cli $EXTRA_DESCRIPTION'
     tag_name: 'release-$CI_COMMIT_SHA'
     ref: '$CI_COMMIT_SHA'
     milestones: 
       - 'm1'
       - 'm2'
       - 'm3'
     released_at: '2020-07-15T08:00:00Z'

Example script for the releaser-cli:

release-cli create --name "Release $CI_COMMIT_SHA" --description "Created using the release-cli $EXTRA_DESCRIPTION" --tag-name "release-$CI_COMMIT_SHA" --ref "$CI_COMMIT_SHA" --released-at "2020-07-15T08:00:00Z" --milestone "m1" --milestone "m2" --milestone "m3"

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Part of #223135 (closed)

Edited by Alex Kalderimis

Merge request reports