equal
deleted
inserted
replaced
10 type :cvs |
10 type :cvs |
11 canonical ":pserver:cvs@cvs.smalltalk-x.de:/cvs/stx" |
11 canonical ":pserver:cvs@cvs.smalltalk-x.de:/cvs/stx" |
12 end |
12 end |
13 |
13 |
14 # |
14 # |
15 # Autp-configure jv-branch:public and jv-branch:private |
15 # Auto-configure jv-branch:public and jv-branch:private |
16 # repositories based on the URL of rakefiles. |
16 # repositories based on the URL of rakefiles. |
17 # |
17 # |
18 origin_forest_url = HG::Repository.new(BUILD_DIR / '..').paths['default'].slice(0.. - 'stx-goodies-builder-rake'.size - 2) |
18 origin_forest_url = HG::Repository.new(BUILD_DIR / '..').paths['default'].slice(0.. - 'stx-goodies-builder-rake'.size - 2) |
19 cloned_from_bitbucket = origin_forest_url =~ /bitbucket.org/ |
19 cloned_from_bitbucket = origin_forest_url =~ /bitbucket.org/ |
20 cloned_from_swing = origin_forest_url =~ /swing\.fit\.cvut\.cz/ |
20 cloned_from_swing = origin_forest_url =~ /swing\.fit\.cvut\.cz/ |
21 cloned_fron_devsrepo = (not cloned_from_bitbucket) and (not cloned_from_swing) |
21 cloned_fron_devsrepo = (not cloned_from_bitbucket) and (not cloned_from_swing) |
22 |
22 |
31 staging "ssh://hg@swing.fit.cvut.cz//var/local/hg" |
31 staging "ssh://hg@swing.fit.cvut.cz//var/local/hg" |
32 when cloned_fron_devsrepo |
32 when cloned_fron_devsrepo |
33 upstream "ssh://hg@swing.fit.cvut.cz//var/local/hg" |
33 upstream "ssh://hg@swing.fit.cvut.cz//var/local/hg" |
34 staging origin_forest_url |
34 staging origin_forest_url |
35 end |
35 end |
36 end |
36 end |
37 |
37 |
38 # Only core developer and/or Jenkins have access to |
38 # Only core developer and/or Jenkins have access to |
39 # stx:stc and stx:librun... |
39 # stx:stc and stx:librun... |
40 if (core_developer? or jenkins?) |
40 if (core_developer? or jenkins?) |
41 repository :'jv-branch:private' do |
41 repository :'jv-branch:private' do |
42 type :hg |
42 type :hg |
43 separator '-' |
43 separator '-' |
44 case |
44 case |
45 when cloned_fron_devsrepo |
45 when cloned_fron_devsrepo |
46 canonical origin_forest_url |
46 canonical origin_forest_url |
47 else |
47 else |
48 canonical "ssh://192.168.12.2//hg" |
48 canonical "ssh://192.168.12.2//hg" |
|
49 end |
49 end |
50 end |
50 end |
51 end |
51 end |
52 rescue Exception |
|
53 info "Building from source archive" |
52 end |
54 end |