Override the image entrypoint.

If an empty array, disable the default image entrypoint with the Jenkins monitor command.

If a non-empty command is provided, it must be able to accept a monitor command and arguments which must be executed. If entrypoint ignores the Jenkins provided monitor command the step may either exit early or failed to be terminated.

sh '''#!/bin/bash
# do some custom entrypoint stuff

# execute monitor command provided by jenkins
exec "$@"
'''