It looks like the to push to s3 or not to push to s3 logic got mangled as part of refactoring on DM-10367.
Update Jenkins jobs to devtoolset-6
A that was needed was an if statement in the pipeline script to replace a check that was removed from the shell script. Give it a try and let me know.
Tested, works fine.