

In the job configuration screen, scroll down to Build. First, change to your projects root directory: cd path/to/your/project.

/usr/bin/env ruby script/runner vendor/plugins/redmine_issue_reminder/lib/tasks/send_email_to_all.rb If you chose our Ruby Git Project, you will have to specify a build step runs the Ruby test runner. If you dont want to use ruby, you can use this node command instead.I am stuck at the point of why is it not sending out email if execute as cron. The Ruby automation testing script below tests a simple google search functionality.
Ruby runner to execute script code#
The code will select the basic capabilities such as OS, browser, browser version and so on. ActionMailer:: Base.raise_delivery_errors = true liver_send_notification( self, user.mail, issues)ĪctionMailer:: Base.raise_delivery_errors = falseīut unfortunately it does not show anything. Sample Test with Ruby Step 4: Let's check the sample ruby test script todo-click-test.rb. The gitlab-rails runner seems to be broken as it doesnt recognize the file argument and tries to run it as a script instead, which fails.

I tried to includes the following lines and hope it throw some error. Now majority function is done, but I encounter the point that i fail to send out email if it is cron (it works fine for reminders/notify/:id) so I think something is missing here that prevent the tool to send out email. I have this plugin to define query also notification function that it will send out email to each assigned developer a message defined in the reminder. Launch a run/debug configuration Start typing the run/debug configuration name and select it from the suggestion list. (Still beta version, will announce a proper version when all functionality done) A ruby script to run other ruby scripts You can use load to run the script you need (the difference between load and require is that require will not run the script again if it has already been loaded).
