fix multiline string
Change-Id: I43e85a6eaed3c3d6ca8fb5274e2a75e785eb6948
diff --git a/build-debian-packages-telegraf.groovy b/build-debian-packages-telegraf.groovy
index 2303e56..2e4d71a 100644
--- a/build-debian-packages-telegraf.groovy
+++ b/build-debian-packages-telegraf.groovy
@@ -48,13 +48,13 @@
}
stage("build package") {
img.inside{
- sh("wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz && \
- tar xf go1.8.1.linux-amd64.tar.gz && \
- export GOROOT=$PWD/go && \
- export PATH=$PATH:$GOROOT/bin && \
- export GOPATH=$PWD && \
- cd src/github.com/influxdata/telegraf && \
- scripts/build.py --package --version=\"${version}\" --platform=linux --arch=amd64")
+ sh("""wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz &&
+ tar xf go1.8.1.linux-amd64.tar.gz &&
+ export GOROOT=$PWD/go &&
+ export PATH=$PATH:$GOROOT/bin &&
+ export GOPATH=$PWD &&
+ cd src/github.com/influxdata/telegraf &&
+ scripts/build.py --package --version=\"${version}\" --platform=linux --arch=amd64""")
}
archiveArtifacts artifacts: "${workingDir}/*.deb"
}