Skip to content
Snippets Groups Projects
Commit e1b88b87 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Up to 1.2.0

parent 96aac5e8
No related branches found
No related tags found
No related merge requests found
v1.2.0
- Added Github web hook support
- Added build schedule
v1.1.0
- Added JSON response for builds status
- Compatible with GitLab v4.0.0
1.1.0
1.2.0
Loading
Loading
@@ -202,3 +202,8 @@ fieldset {
.lead {
font-size: 18px;
}
h3 {
font-weight: normal;
color: #666;
}
Loading
Loading
@@ -13,7 +13,7 @@ class Project < ActiveRecord::Base
validates_uniqueness_of :name
 
validates :polling_interval,
format: { with: /^[1-9]\d{0,7}[s|m|d]$/ },
format: { with: /^[1-9]\d{0,7}[m|h|d]$/ },
if: ->(project) { project.polling_interval.present? }
 
before_validation :set_default_values
Loading
Loading
@@ -123,7 +123,7 @@ class Project < ActiveRecord::Base
end
 
def set_scheduler
if self.polling_interval.present?
if self.always_build && self.polling_interval.present?
Resque.set_schedule(self.schedule_id, {
:class => 'SchedulerJob',
every: self.polling_interval,
Loading
Loading
Loading
Loading
@@ -55,8 +55,12 @@
%br
.field
= f.label :polling_interval, "Build interval"
= f.text_field :polling_interval, placeholder: '30m'
%small Ex. 30m means every 30 minutes and 2d - every two days
= f.text_field :polling_interval, placeholder: '5h'
%ul
%li m - minutes
%li h - hours
%li d - days
%p Ex. 30m means every 30 minutes and 2d - every two days
.form-actions
= f.submit 'Save', class: 'btn btn-primary'
= link_to 'Cancel', projects_path, class: 'btn'
Loading
Loading
Loading
Loading
@@ -10,16 +10,15 @@
Edit
 
 
%br
%p.lead Copy provided setting to your GitLab instance for close integration
%p.lead Integration with GitLab and other services
 
%form.form-horizontal
%fieldset
%legend
GitLab 3.1+
%small build on push, integration with Merge Requests, links to GitLab instance
.right
Copy to GitLab &rarr; Project &rarr; Services
%small Copy to GitLab &rarr; Project &rarr; Services
 
.control-group
= label_tag :url, 'Project URL', class: 'control-label'
Loading
Loading
@@ -34,11 +33,24 @@
%fieldset
%legend
GitLab 3.0 and earlier
%small build on push, links to GitLab commits
.right
Copy to GitLab &rarr; Project &rarr; Web Hooks
%small Copy to GitLab &rarr; Project &rarr; Web Hooks
.control-group
= label_tag :hook_url, 'HTTP POST Hook url', class: 'control-label'
.controls
= text_field_tag :url, build_project_url(@project, token: @project.token), class: 'input-xxlarge', readonly: true
%p.hint Copy this link and add to GitLab web hooks
 
%fieldset
%legend
github
%small build on push
.right
%small Copy to github &rarr; Project &rarr; Service Hooks &rarr; Web Hooks
.control-group
= label_tag :hook_url, 'HTTP POST Hook url', class: 'control-label'
.controls
= text_field_tag :url, build_project_url(@project, token: @project.token), class: 'input-xxlarge', readonly: true
%p.hint Copy this link and add to github web hooks
%h3 Projects
%br
- @projects.each do |project|
.project_box
.title
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@
.right
= link_to details_project_path(@project), class: 'btn btn-small' do
Details
&nbsp;
= link_to edit_project_path(@project), class: 'btn btn-small' do
%i.icon-edit.icon-white
Edit
Loading
Loading
mkdir -p tmp/pids
nohup bundle exec rake environment resque:work QUEUE=runner,scheduler_task RAILS_ENV=production PIDFILE=tmp/pids/resque_worker.pid > ./log/resque.log &
nohup bundle exec rake environment resque:scheduler RAILS_ENV=production PIDFILE=tmp/pids/resque_schedule.pid > ./log/schedule.log &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment