sh: 1: /var/lib/jenkins/bin/login-bash: not found
On master Jenkins (installed on physical machine not on docker) it works properly.
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0681f438-33d8-40b9-bba2-fa612a1d8bd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you for answer. In this case on physical machine the path "/var/lib/jenkins/bin/login-bash" is proper but it does not exists on docker.
--
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2226e9624a0b20345e0cca588d52402c736d0b49.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.
Honestly I didn't know it shouldn't be there. I am quite new in jenkins and docker. I didn't write login-bash file. It contains:#!/bin/sh#exec /bin/bash -l "$@"exec /bin/bash "$@"
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0bd4b86a3d64185bff5adb005f31a1ef965667ec.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0681f438-33d8-40b9-bba2-fa612a1d8bd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Pipeline] configFileProvider provisioning config files... copy managed file [config/master.key] to file:/var/lib/jenkins/workspace/eo-api-test_bugfix_mails-styling@tmp/config6702095344930085554tmp [Pipeline] { [Pipeline] sh [Pipeline] sh [Pipeline] } Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] sh [Pipeline] sh Post stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Invoke Rake) [Pipeline] sh [Pipeline] junit Recording test results Test reports were found but none of them are new. Did leafNodes run?
For example, /var/lib/jenkins/workspace/eo-api-test_bugfix_mails-styling/spec/reports/SPEC-Account-Associations.xml is 3 days 21 hr old
Without commenting it out job works:
[Pipeline] configFileProvider
provisioning config files...
copy managed file [config/master.key] to file:/var/lib/jenkins/workspace/eo-api-test_bugfix_mails-styling@tmp/config2749435189004461766tmp
[Pipeline] {
[Pipeline] sh
+ mkdir -p /var/lib/jenkins/workspace/eo-api-test_bugfix_mails-styling/config
[Pipeline] sh
+ cp /var/lib/jenkins/workspace/eo-api-test_bugfix_mails-styling@tmp/config2749435189004461766tmp /var/lib/jenkins/workspace/eo-api-test_bugfix_mails-styling/config/master.key
[Pipeline] }
Deleting 1 temporary files
[Pipeline] // configFileProvider
[Pipeline] sh
Do you know how fix this problem - use shell without this "hack script"; maybe some jenkinsfile modification or jenkins settings? Users root and jenkins use /bin/bash as default shell.
/home/jenkins/agent/workspace/eo-api-test_bugfix_mails-styling@tmp/durable-304eb649/script.sh: line 1: bundle: command not found
This is path on dockerized jenkins slave. Project - rails application but bundle command not found.
bundle: command not found
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e73ba1e09177a05635157a138e31efafb44029d3.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.
I should try some way but it is not mine: https://github.com/jenkinsci/docker-jnlp-slave
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3375f5fd664715b039cc082a6e8a11023c332b42.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.
That's perfect. Thank you.
[Pipeline] sh + /home/jenkins/.rvm/rubies/ruby-2.5.1/bin/gem install bundler /usr/bin/env: ‘ruby’: No such file or directory
It's related with this stage but with exactly which command - could you point me to good track:
stage('Prepare Env') {
steps {
configFileProvider([configFile(fileId: 'master-key', variable: 'MASTER_KEY')]) {
sh "mkdir -p ${WORKSPACE}/config"
sh "cp ${MASTER_KEY} ${WORKSPACE}/config/master.key"
}
sh "echo Test"
sh "/home/jenkins/.rvm/rubies/ruby-2.5.1/bin/gem install bundler"
sh "/home/jenkins/.rvm/rubies/ruby-2.5.1/bin/bundle install"
sh "/home/jenkins/.rvm/rubies/ruby-2.5.1/bin/bundle exec rake db:migrate RAILS_ENV=test"
}
post {
success {
handleStatus(STAGE_NAME, true);
}
failure {
handleStatus(STAGE_NAME, false);
}
}
}
+ /home/jenkins/.rvm/rubies/ruby-2.5.1/bin/gem install bundler/usr/bin/env: ‘ruby’: No such file or directory
It's related with this stage but with exactly which command - could you point me to good track:
Installing pg 1.1.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/jenkins/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/pg-1.1.3/ext
/home/jenkins/.rvm/rubies/ruby-2.5.1/bin/ruby -r
./siteconf20190415-13476-1lh45x5.rb extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
An error occurred while installing pg (1.1.3), and Bundler cannot continue.
Make sure that `gem install pg -v '1.1.3' --source 'https://rubygems.org/'`
succeeds before bundling.
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/da2a5eb646e8497d45aca3f1ad731f53e20662bf.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.