Hello,
I have a problem with not recognized "sh" command. I have easy pipeline
script:
pipeline {
agent { label "slave-1" }
options {
disableConcurrentBuilds()
}
stages {
stage('Setup build variables') {
steps {
script {
sh 'echo "Setup build variables"'
}
}
}
stage('Prepare Env') {
steps {
script {
echo "Prepare Env"
}
}
}
stage('Invoke Rake') {
steps{
script {
echo "Invoke Rake"
}
}
}
}
}
When I run it on jenkins slave (docker image) I have an error:
sh: 1: /var/lib/jenkins/bin/login-bash: not found
On master Jenkins (installed on physical machine not on docker) it
works properly.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAKfpvwf4d6SCkrfdnJRk6ZdcsbCLYAm_H%3Du4_ZLxBO05WPsGuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.