I mean trim, not strip.

Change-Id: I9e8bcf6472ffc2149d3129f83a2eedf2c8a2edc5
diff --git a/cicd/pipelines/tasks/task_publish_unstable.jenkins b/cicd/pipelines/tasks/task_publish_unstable.jenkins
index c8df8e6..c5f54fd 100644
--- a/cicd/pipelines/tasks/task_publish_unstable.jenkins
+++ b/cicd/pipelines/tasks/task_publish_unstable.jenkins
@@ -7,7 +7,7 @@
             | head -n1
     """
 
-    return sh(returnStdout: true, script: script).strip()
+    return sh(returnStdout: true, script: script).trim()
 }
 
 def installGpgKeyring() {
diff --git a/cicd/pipelines/tasks/task_update_unstable.jenkins b/cicd/pipelines/tasks/task_update_unstable.jenkins
index 8ae2e23..60c2535 100644
--- a/cicd/pipelines/tasks/task_update_unstable.jenkins
+++ b/cicd/pipelines/tasks/task_update_unstable.jenkins
@@ -7,7 +7,7 @@
             | head -n1
     """
 
-    return sh(returnStdout: true, script: script).strip()
+    return sh(returnStdout: true, script: script).trim()
 }
 
 def installGpgKeyring() {