Skip to content

Commit a016b31

Browse files
authored
[ci] XA.PublishAllLogs publishes all build logs to build artifacts (dotnet#8189)
Context: dotnet@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)
1 parent c984e8b commit a016b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools/automation/yaml-templates/upload-results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parameters:
33
configuration: $(XA.Build.Configuration)
44
artifactName: results
55
includeBuildResults: false
6-
condition: ne(variables['Agent.JobStatus'], 'Succeeded')
6+
condition: or(ne(variables['Agent.JobStatus'], 'Succeeded'), eq(variables['XA.PublishAllLogs'], 'true'))
77

88
steps:
99
- template: run-xaprepare.yaml

0 commit comments

Comments
 (0)