gitlab-wizard

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2020 License: MIT Imports: 5 Imported by: 0

README

Go Report Card

Gitlab-wizard

This project is a command line, to provide help in automating pipelines with Gitlab.

Features

  • Download artifacts from a specific job and a specific commit

Instalation

Requirements
  • Golang >=1.14
Install
go get github.com/guiyomh/gitlab-wizard
go install github.com/guiyomh/gitlab-wizard

Usage

Artifact Download

This command downloads an artifact from a successful job for a given commit ID.

For example if you have specialized pipelines:

  • a CI pipeline on each commit
  • a CD pipeline on tag

graph LR

    subgraph pipeline CD
        subgraph STAGE CD 1
            deploy-integration
        end 
        subgraph STAGE CD 2
            deploy-integration-->run-E2E
        end 
        subgraph STAGE CD 3
            run-E2E-->deploy-staging
        end 
        subgraph STAGE CD 4
            deploy-staging-->smoke-tests
        end 
        subgraph STAGE CD 5
            smoke-tests-->deploy-prod
        end 
    end
    subgraph pipeline CI
        subgraph STAGE CI 1
            install
        end 
        subgraph STAGE CI 2
            install --> unit-test
            install --> linter
            install --> coverage
        end 
        subgraph STAGE CI 3
            unit-test --> build
        end 
    end
    deploy-integration -. fetch build artifact .-> build
    linkStyle 8 stroke:red,stroke-width:2px,color:red;

You can recover the artifact produced by job as follows:

gitlab-wizard artifact download \
    -token <your-token>  \
    -job load_translation \
    -project=16 \
    -commit 93cd32a8e3704551e6ab8905f4af7942939805cf \
    --extract

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL