Skip to content

Commit 966b76d

Browse files
committed
[Build] Fix specification of bash as shell for deployment
The shebang has to be placed at the very first line of an sh-script in order to have an effect. Additionally improve formatting of the Jenkinsfile.
1 parent f0082f5 commit 966b76d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pipeline {
66
timestamps()
77
}
88
agent {
9-
label "ubuntu-latest"
9+
label 'ubuntu-latest'
1010
}
1111
tools {
1212
maven 'apache-maven-3.9.9'
@@ -53,9 +53,8 @@ pipeline {
5353
branch 'master'
5454
}
5555
steps {
56-
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
57-
sh '''
58-
#!/bin/bash
56+
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
57+
sh '''#!/bin/bash
5958
deployM2ERepository()
6059
{
6160
echo Deploy m2e repo to ${1}

0 commit comments

Comments
 (0)