Let Jenkins ignore shell script return code

In a build preparation script I had a shell command that was executed. This command set some permissions, but would fail if the folder to set the permissions on would not exist. If the folder does not exist it would fail the build
because the permissions command would fail. I was looking for a way to ignore that, because the settings of the permissions would only fail if the workspace was cleaned and the file would be created later on in the build process
with the correct permissions.

In a Google Group post I found the solution, append || true to the command:

chmod 777 file.xml || true