Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am polarp on github.
  • I am pefnushev (https://keybase.io/pefnushev) on keybase.
  • I have a public key ASBQ8b1tPkixj_tWL4TdSrxKvNjTQXqeoDbDLm0UReBCBwo

To claim this, I am signing this object:

@polarp
polarp / Jenkinsfile.groovy
Created January 25, 2018 08:33 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'No quotes in single backticks'
sh 'echo $BUILD_NUMBER'
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"'
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"'
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"'
echo 'Using three backslashes still results in preserving the single quotes'

Keybase proof

I hereby claim:

  • I am polarp on github.
  • I am polarp (https://keybase.io/polarp) on keybase.
  • I have a public key ASAm5yup_vh95ipXYRYnjiXgMR0YCWRQqy80b-owoweENgo

To claim this, I am signing this object: