@gitlaber/wait-for
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

Wait for another pipeline in Gitlab CI/CD

Pretend we have the situation when we use tag pipelines to build some artifacts like packages or images. Using tags guarantees uniqueness also they can be protected so it's a quick win for many compliance controls. However, pretend you have a deployment ( especially using gitlab flow with environment branches ) via MRs. So it may happen quite easily that by moment when MR got approved Tag pipeline is not yet finished and artifacts are not yet fully build so deployment is not ready. So it would be nice to have something like this gitlab wait --ref v${npm_package_version}.

Usage

Usage: wait [options]

Wait for another pipeline

Options:
  --project <projectPath>  Gitlab project path (default $CI_PROJECT_PATH) (default: "/theplenkov-npm/gitlab-ci-cli")
  --ref <pipelineRef>      Pipeline reference
  --delay <delayInSec>     Poll every <delay> seconds (1 second by default) (default: "1")
  -h, --help               display help for command

| This command is a part of @giltaber/cli CLI

Readme

Keywords

none

Package Sidebar

Install

npm i @gitlaber/wait-for

Weekly Downloads

1

Version

0.1.4

License

none

Unpacked Size

10.2 kB

Total Files

17

Last publish

Collaborators

  • theplenkov-npm