Get
Learn how to list logs for a build.
Command
$ vela get log <parameters...> <arguments...>
For more information, you can run
vela get log --help
.Parameters
The following parameters are used to configure the command:
Name | Description | Environment Variables |
---|---|---|
org | name of organization for the log | VELA_ORG , LOG_ORG |
repo | name of repository for the log | VELA_REPO , LOG_REPO |
build | number of the build for the log | VELA_BUILD , LOG_BUILD |
output | format the output for the logs | VELA_OUTPUT , LOG_OUTPUT |
This command also supports setting the following parameters via a configuration file:
org
repo
output
For more information, please review the CLI config documentation.
Permissions
COMING SOON!
Sample
This section assumes you have already installed and setup the CLI.
To install the CLI, please review the installation documentation.
To setup the CLI, please review the authentication documentation.
Request
$ pwd
~/github/octocat
$ vela get log --build 5
Targeted Request
$ vela get log --org github --repo octocat --build 5
Response
$ git init
Initialized empty Git repository in /vela/src/github.com/github/octocat/.git/
$ git remote add origin https://github.com/github/octocat.git
$ git remote --verbose
origin https://github.com/github/octocat.git (fetch)
origin https://github.com/github/octocat.git (push)
$ git fetch --no-tags origin refs/heads/main
From https://github.com/github/octocat
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
$ git reset --hard afafce5e33a8efd4340613b31a953107d6dec3a3
HEAD is now at afafce5 Dummy commit
$ echo "Hello World!"
Hello World!
Last modified September 16, 2022: chore: use main as default (#324) (400aa851)