Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Piotr Bracha
I have resolved this by adding in slave configuration: 1. Marked "Environment variables". 2. Added environment variable PATH+EXTRA with value /home/jenkins/.rvm/gems/ruby-2.5.1/bin:/home/jenkins/.rvm/gems/ruby-2.5.1@global /bin:/home/jenkins/.rvm/rubies/ruby-2.5.1/bin:/home/jenkins/.rvm/bin:/usr/lo

Re: How does "Build whenever a SNAPSHOT dependency is built" work?

2019-04-15 Thread Cyrille Le Clerc
Hello Aaron, If all your downstream branches have a dependency on the same upstream snapshot version, then yes, all downstream pipelines will be triggered, we don't differentiate on the branch identifier. Did you expect a different behaviour? Wouldn't all the branches of the downstream job des

Does Jira Steps Plugin Work With Jira Cloud?

2019-04-15 Thread Mark Bretl
Environment: Jenkins 2.164.2 Jira Plugin 3.0.6 Jira Steps plugin 1.4.5 Hi, I am trying to configure a JIRA site for the Jira Steps plugin and unable to get it working with Jira Cloud. Using the test connection feature, I get 401 error saying unauthorized. I have successfully configured the Jira

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Ivan Fernandez Calvo
I've suggested you run a Groovy script on your agent using the Groovy CLI, not to include your groovy code in your pipeline, if you make a load it is the same that put the code in the Jenkinsfile (more or less), -- You received this message because you are subscribed to the Google Groups "Je

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Dirk Heinrichs
Am Montag, den 15.04.2019, 14:53 +0200 schrieb Piotr Bracha: + /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: Well, it already tells y

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Piotr Bracha
One more thing: [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 c

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Marogo Ytcutc
I used example from this page to load groovy script from file to pipeline: https: //stackoverflow.com/questions/37800195/how-do-you-load-a-groovy-file-and-execute-it My Script.groovy file (placed in %workspace% directory): import testlink.api.java.client.TestLinkAPIClient; import testlink.api.ja

Re: [EXTERNAL] - Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Dirk Heinrichs
Am Montag, den 15.04.2019, 14:12 +0200 schrieb Piotr Bracha: That's perfect. Thank you. You're welcome. Another possible solution would be to let Jenkins manage the needed stuff. For example we use Groovy a lot, so we installed the Jenkins Groovy plugin. This lets you add Groovy installations t

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Piotr Bracha
That's perfect. Thank you. pon., 15 kwi 2019 o 13:06 Dirk Heinrichs napisał(a): > Am Montag, den 15.04.2019, 12:47 +0200 schrieb Piotr Bracha: > > I should try some way but it is not mine: >

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Dirk Heinrichs
Am Montag, den 15.04.2019, 12:47 +0200 schrieb Piotr Bracha: I should try some way but it is not mine:

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Piotr Bracha
I should try some way but it is not mine: https://github.com/jenkinsci/docker-jnlp-slave pon., 15 kwi 2019 o 12:04 Dirk Heinrichs napisał(a): > Am Montag, den 15.04.2019, 10:05 +0200 schrieb Piotr Bracha: > > bundle: command not found > > > Your container lacks stuff needed by your job, Ruby and

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread kuisathaverat
the problem is that you are not running the code as Groovy script, you include the code in your pipeline script, it is not the same. save this as a Groovy script in your repo, something like scripts/my-testlink.groovy #!/usr/bin/env groovy import testlink.api.java.client.TestLinkAPIResults.* im

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Dirk Heinrichs
Am Montag, den 15.04.2019, 10:05 +0200 schrieb Piotr Bracha: bundle: command not found Your container lacks stuff needed by your job, Ruby and/or required Ruby gems in this case. You'd need to rebuild your container image to include all the stuff needed to execute your job. HTH... Dirk --

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Marogo Ytcutc
Still doesn't work. :-( I will describe what I have done in turn. I downloaded the file "testlink-api-client-2.0.zip" from: https://code.google.com/archive/p/dbfacade-testlink-rpc-api/downloads After extract archive I placed the file "testlink-api-client-2.0.jar" in directory "D:\Jenkins\testlin

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Piotr Bracha
I have found and fix it but now I have : /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. pon., 15 kwi 2019 o 09:0

Re: jenkins slave on docker does not see "sh" command

2019-04-15 Thread Piotr Bracha
When I commented out line in file login-bash I have failing job: [Pipeline] configFileProvider provisioning config files... copy managed file [config/master.key] to file:/var/lib/jenkins/workspace/e