Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipelines show log command #377

Open
ishitam8 opened this issue Jan 24, 2019 · 9 comments
Open

Pipelines show log command #377

ishitam8 opened this issue Jan 24, 2019 · 9 comments
Labels
Feature Feature Work required. new command

Comments

@ishitam8
Copy link
Member

Command Description
az pipelines build show-log Show logs for a given build ID
@ishitam8 ishitam8 self-assigned this Jan 24, 2019
@geverghe
Copy link
Contributor

geverghe commented Jan 24, 2019

Why show-log? Isn't log enough? az pipelines build log? or is it because of the verb guidance? Let me just check guidelines once again

@geverghe
Copy link
Contributor

I stand corrected. The guidelines do indicate that a verb is required. Including relevant except:

All command names should contain a verb e.g. account get-connection-string instead of account connection-string

@melezhik
Copy link

Hi guys! Any ETA on that feature? Thanks.

@melezhik
Copy link

az pipelines build show-log is long , IMHO. Any alternatives?

@geverghe
Copy link
Contributor

@melezhik - We are right now working on a few high priority items and I do not have a conclusive ETA on this. I will keep this thread posted on the progress. We arrived at the command structure using the guidelines provided by Azure CLI. However, we are open to suggestions as well - what would be your ideal command for this look like? Would it work if you could just alias this command to your ideal command structure?

@ishitam8 ishitam8 removed their assignment Apr 8, 2020
@titimoby
Copy link

Having access to logs in that way is still very interesting.
Is there any chance to see some progress on this issue?
That would be very helpful.

@ajpaon
Copy link

ajpaon commented Nov 2, 2021

Hi, any update on this? Is there a workaround available?

@davep3rrett
Copy link

Any update here? This would be a really useful command. Thanks!

@yasselpiloto
Copy link

yasselpiloto commented Jun 19, 2023

this is really helpful and standard in other CI systems like Concourse CI ...
using this in the mean while

buildNumber=<build number>
organization=<organization>

# Get Azure Subscription ID
subscriptionId=$(az account show --query id -o tsv)

# Get Azure Access Token to authorize HTTP requests
azureAccessToken=$(az account get-access-token --query accessToken -o tsv)

curl -sL \
    -H "authorization: bearer $azureAccessToken" \
    -H "content-type: application/json" \
    "https://$organization.visualstudio.com/$subscriptionId/_apis/build/builds/$buildNumber/logs" | jq '.value[].url'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature Work required. new command
Projects
None yet
Development

No branches or pull requests

7 participants