[CI] Missing file error in stop_review job for OpenShift clusters
Summary
The delete_operator
task called in stop_review
jobs tries to delete a file $INSTALL_DIR/operator.yaml
but that file is missing in the job context. This results in an error like
task: [delete_operator] rm $INSTALL_DIR/operator.yaml
rm: cannot remove '/builds/gitlab-org/cloud-native/gitlab-operator/.install/operator.yaml': No such file or directory
task: Failed to run task "delete_operator": exit status 1
This $INSTALL_DIR/operator.yaml
file would be there if deploying the operator from a local workstation, but is missing in CI because of how artifacts are passed through.
Recommend changing this line in the Taskfile so it doesn't throw an error in local or CI contexts.
rm $INSTALL_DIR/operator.yaml -> rm -f $INSTALL_DIR/operator.yaml
Found while reviewing Support Openshift 4.13 (!701 - merged) • Clemens Beck • 16.6
Edited by Dustin Collins