Ruby/Cucumber: Integration to Jenkins : Bitbucket

∥☆過路亽.° 提交于 2019-12-13 06:57:43

问题


NOTE: Jenkins linked to the machine, where all the automation set up is done, and cucumber test steps can be run with the command cucumber flawlessly.

I have a repository in bitbucket, and I am trying to get it run on the jenkins on each change to my repository.

Currently, the tests that I have written with cucumber/gherkin and ruby are for mobile automation tests with appium using appium_lib

I am trying to get this run in the jenkins but, jenkins would keep displaying the error can't find gem bundler (>= 0.a) .

I am new to JENKINS integration.

  1. I have integrated to bitbucket successfully
  2. I have set up jenkins and configured the slave to be my machine* (where i have all the cucumber, appium and ruby set up done) and the slave shows as IDLE status.

I wanted to know if there are any additional steps that I have to install or configure in jenkins to have these tests running. I see that a workspace has been created by jenkins in the system and all the files has been copied to it.

Any help is greatly appreciated.

The error logs

[Testappium] $ rake --rakefile /usr/local/bin/bundle
rake aborted!
can't find gem bundler (>= 0.a)
/usr/local/bin/bundle:22:in `<top (required)>'
(See full trace by running task with --trace)
Build step 'Invoke Rake' marked build as failure
[CucumberReportPublisher] Compiling Cucumber Reports ...
[CucumberReportPublisher] Copying all json files from slave: /Users/jain/Documents/fslearning-android/workspace/Testappium to master reports directory: /var/lib/jenkins/jobs/Testappium/builds/13
[CucumberReportPublisher] Found 0 json files:

来源:https://stackoverflow.com/questions/43612140/ruby-cucumber-integration-to-jenkins-bitbucket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!