Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ class AzBatchService implements Closeable {
}

// otherwise return a StartTask object with the start task command and resource files
return new BatchStartTask(startCmd.join('; '))
return new BatchStartTask(startCmd.join(' && '))
.setResourceFiles(resourceFiles)
.setUserIdentity(userIdentity(opts.privileged, null, AutoUserScope.POOL))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class AzBatchServiceTest extends Specification {
when:
def configuredStartTask = svc.createStartTask( new AzStartTaskOpts(script: 'echo hello-world') )
then:
configuredStartTask.commandLine == 'bash -c "chmod +x azcopy && mkdir $AZ_BATCH_NODE_SHARED_DIR/bin/ && cp azcopy $AZ_BATCH_NODE_SHARED_DIR/bin/"; bash -c \'echo hello-world\''
configuredStartTask.commandLine == 'bash -c "chmod +x azcopy && mkdir $AZ_BATCH_NODE_SHARED_DIR/bin/ && cp azcopy $AZ_BATCH_NODE_SHARED_DIR/bin/" && bash -c \'echo hello-world\''
and:
configuredStartTask.resourceFiles.size()==1
configuredStartTask.resourceFiles.first().filePath == 'azcopy'
Expand Down