Skip to content

Commit

Permalink
[Build] Fix specification of bash as shell for deployment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HannesWell committed Oct 3, 2024
1 parent f0082f5 commit 966b76d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
timestamps()
}
agent {
label "ubuntu-latest"
label 'ubuntu-latest'
}
tools {
maven 'apache-maven-3.9.9'
Expand Down Expand Up @@ -53,9 +53,8 @@ pipeline {
branch 'master'
}
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
#!/bin/bash
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh '''#!/bin/bash
deployM2ERepository()
{
echo Deploy m2e repo to ${1}
Expand Down

0 comments on commit 966b76d

Please sign in to comment.