Fix call to find command
Change-Id: Id58c5ca5b5aa7fa54cbfb789540efedd8e89a9bd
diff --git a/build-debian-packages-jmx-exporter.groovy b/build-debian-packages-jmx-exporter.groovy
index 10a2a9a..d356f69 100644
--- a/build-debian-packages-jmx-exporter.groovy
+++ b/build-debian-packages-jmx-exporter.groovy
@@ -32,7 +32,7 @@
img.inside ("-u root:root") {
stage("Build") {
- sh("sed -i \"s/TIMESTAMP/${timestamp}/g\" \$(find -name pom.xml)")
+ sh("sed -i \"s/TIMESTAMP/${timestamp}/g\" \$(find ./ -name pom.xml)")
sh("sudo apt-get update && sudo apt-get install -y openjdk-${javaversion}-jdk maven")
sh("cd jmx-exporter-${timestamp} && mvn package")
}
@@ -41,7 +41,7 @@
if (UPLOAD_APTLY.toBoolean()) {
stage("upload package") {
def buildSteps = [:]
- def debFiles = sh script: "find -name *.deb", returnStdout: true
+ def debFiles = sh script: "find ./ -name *.deb", returnStdout: true
def debFilesArray = debFiles.trim().tokenize()
def workspace = common.getWorkspace()
for (int i = 0; i < debFilesArray.size(); i++) {