Fix string in pipeline
Change-Id: Idb8649f22f6c0a3de2cf472e8694a5d851b43645
diff --git a/build-debian-packages-telegraf.groovy b/build-debian-packages-telegraf.groovy
index 89c29a4..2303e56 100644
--- a/build-debian-packages-telegraf.groovy
+++ b/build-debian-packages-telegraf.groovy
@@ -48,12 +48,12 @@
}
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 &&
+ 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"