Skip to content

Commit 4d23c57

Browse files
committed
Fixed build host setup erroring out
Cause as yet unknown. Happens near the end of the script after policy evaluates OK and cleanup() is called on purpose but still the entire script fails. Ticket: none Changelog: none
1 parent e97e00d commit 4d23c57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/setup-cfengine-build-host.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function cleanup()
9090
fi
9191
ls -l /home
9292
chown -R jenkins /home/jenkins
93+
echo "Done with cleanup()"
9394
}
9495

9596
trap cleanup ERR
@@ -227,6 +228,8 @@ cp -a masterfiles/* /var/cfengine/inputs/
227228
grep -i error: promises.log && exit 1
228229
/var/cfengine/bin/cf-agent -KIf "$policy" -b cfengine_build_host_setup | tee -a promises.log
229230
grep -i error: promises.log && exit 1
231+
echo "Done evaluating policy. End of promies.log:"
232+
tail promises.log
230233
)
231234

232235
cleanup

0 commit comments

Comments
 (0)