mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Merge pull request #1 from marcusholl/pr/handleSpaceWithNeoDeploy
[fix] neo deploy fails with blanks in path of the deployable.
This commit is contained in:
commit
26e093f3e4
@ -88,7 +88,7 @@ class NeoDeploymentTest extends BasePipelineTest {
|
||||
|
||||
script.execute(archivePath, 'myCredentialsId')
|
||||
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash \/opt\/neo\/tools\/neo\.sh deploy-mta --user anonymous --host test\.deploy\.host\.com --source .* --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash \/opt\/neo\/tools\/neo\.sh deploy-mta --user anonymous --host test\.deploy\.host\.com --source ".*" --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
|
||||
assert echoes[1] == "[neoDeploy] Neo executable \"/opt/neo/tools/neo.sh\" retrieved from environment."
|
||||
|
||||
@ -126,7 +126,7 @@ class NeoDeploymentTest extends BasePipelineTest {
|
||||
|
||||
script.execute(archivePath)
|
||||
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash \/opt\/neo\/tools\/neo\.sh deploy-mta --user defaultUser --host test\.deploy\.host\.com --source .* --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash \/opt\/neo\/tools\/neo\.sh deploy-mta --user defaultUser --host test\.deploy\.host\.com --source ".*" --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
|
||||
assert echoes[1] == "[neoDeploy] Neo executable \"/opt/neo/tools/neo.sh\" retrieved from environment."
|
||||
}
|
||||
@ -143,7 +143,7 @@ class NeoDeploymentTest extends BasePipelineTest {
|
||||
|
||||
script.execute(archivePath)
|
||||
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash neo deploy-mta --user defaultUser --host test\.deploy\.host\.com --source .* --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash neo deploy-mta --user defaultUser --host test\.deploy\.host\.com --source ".*" --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
|
||||
assert echoes[1] == "Using Neo executable from PATH."
|
||||
}
|
||||
@ -160,7 +160,7 @@ class NeoDeploymentTest extends BasePipelineTest {
|
||||
|
||||
script.execute(archivePath, 'myCredentialsId')
|
||||
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash \/etc\/neo\/tools\/neo\.sh deploy-mta --user anonymous --host test\.deploy\.host\.com --source .* --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
assert shellCalls[0] =~ /#!\/bin\/bash \/etc\/neo\/tools\/neo\.sh deploy-mta --user anonymous --host test\.deploy\.host\.com --source ".*" --account trialuser123 --password \*\*\*\*\*\*\*\* --synchronous/
|
||||
|
||||
assert echoes[1] == "[neoDeploy] Neo executable \"/etc/neo/tools/neo.sh\" retrieved from parameters."
|
||||
|
||||
|
@ -48,7 +48,7 @@ def call(parameters = [:]) {
|
||||
${neoExecutable} deploy-mta \
|
||||
--user ${username} \
|
||||
--host ${deployHost} \
|
||||
--source ${archivePath.getAbsolutePath()} \
|
||||
--source "${archivePath.getAbsolutePath()}" \
|
||||
--account ${deployAccount} \
|
||||
--password ${password} \
|
||||
--synchronous
|
||||
|
Loading…
Reference in New Issue
Block a user