View

Learn how to inspect logs for a build, step, or service.

Command

$ vela view log <parameters...> <arguments...>

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
orgname of organization for the logVELA_ORG, LOG_ORG
reponame of repository for the logVELA_REPO, LOG_REPO
buildnumber of the build for the logVELA_BUILD, LOG_BUILD
servicenumber of the service for the logVELA_SERVICE, LOG_SERVICE
stepnumber of the step for the logVELA_STEP, LOG_STEP
outputformat the output for the logsVELA_OUTPUT, LOG_OUTPUT

Permissions

COMING SOON!

Sample

Request

$ pwd
~/github/octocat
$ vela view log --build 5 --step 1

Targeted Request

$ vela view log --org github --repo octocat --build 5 --step 1

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
Last modified September 16, 2022: chore: use main as default (#324) (400aa851)