zuul-jobs/roles/stage-output
James E. Blair f0d7c980b5 Handle no-sudo in stage-output
The stage-output role had two assumptions:

1) The zuul_copy_output variable would always be defined
2) The role would be able to sudo on the remote node

To make it easier for users who want to use this in a base job,
remove both of those assumptions.

1) We now supply a default empty dict if the variable is not defined
so that the role does not fail with an error.

2) We check to see if we can sudo on the remote node, and if we can,
we do when copying files; otherwise we don't, and assume that the
user will only specify files they have access to (if they don't then
the copy will fail).

Change-Id: I5428c44adfafac4872342b59a92de311f41687b6
2021-05-31 15:47:57 -07:00
..
defaults Stop compressing files during intermediate steps part 2 2020-01-08 09:24:45 -08:00
tasks Handle no-sudo in stage-output 2021-05-31 15:47:57 -07:00
README.rst Stop compressing files during intermediate steps part 2 2020-01-08 09:24:45 -08:00

Stage job output on the remote node

Takes as input a dictionary of files/folders named 'zuul_copy_output'. Copies contents into {{ zuul_output_dir }} on the remote node and is intended to be used before output fetching in a base job's post-playbook.

Role Variables