Managing Your Jenkins Environment Using withEnv: A Tutorial

So, one of the potential pitfalls of using withEnv to call external tools or scripts is that it can create invisible dependencies and add rigidity to your builds. Without those variables, build.sh will either create an empty file, or the file creation and delete will fail—and the build will still pass, since bash won’t propagate […]

So, one of the potential pitfalls of using withEnv to call external tools or scripts is that it can create invisible dependencies and add rigidity to your builds. Without those variables, build.sh will either create an empty file, or the file creation and delete will fail—and the build will still pass, since bash won’t propagate the errors back to Jenkins. Eric has worked in the financial markets in New York City for 25 years, developing infrastructure for market data and financial information exchange (FIX) protocol networks.
Source: CloudBees