f0d7c980b5
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 |
||
---|---|---|
.. | ||
defaults | ||
tasks | ||
README.rst |
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