Skip to content

Commit

Permalink
[ci] XA.PublishAllLogs publishes all build logs to build artifacts (#…
Browse files Browse the repository at this point in the history
…8189)

Context: f59a3c2

By default, we only store the CI build logs of jobs that fail.
However, there are times when we would like to see the build logs for
successful jobs.

Add the ability to specify that a CI run should publish *all* of its
build logs.

When running a job from the UI, set the `XA.PublishAllLogs` variable
to `true`:

![image](https://github.com/xamarin/xamarin-android/assets/179295/928069b9-edca-449f-97cb-899f254df102)
  • Loading branch information
jpobst authored Jul 14, 2023
1 parent c984e8b commit a016b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/automation/yaml-templates/upload-results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
configuration: $(XA.Build.Configuration)
artifactName: results
includeBuildResults: false
condition: ne(variables['Agent.JobStatus'], 'Succeeded')
condition: or(ne(variables['Agent.JobStatus'], 'Succeeded'), eq(variables['XA.PublishAllLogs'], 'true'))

steps:
- template: run-xaprepare.yaml
Expand Down

0 comments on commit a016b31

Please sign in to comment.