rakelib/support.rb
branchstx-8.0.0
changeset 169 f9f519bb10b6
parent 137 e665031cade7
child 288 2986b947d89f
equal deleted inserted replaced
168:37f3dd667f71 169:f9f519bb10b6
    46 # A super simple API for Jenkins used to download pre-built stc and librun.
    46 # A super simple API for Jenkins used to download pre-built stc and librun.
    47 module Jenkins
    47 module Jenkins
    48   # Return an a Jenkins build with pre-built stc and librun. 
    48   # Return an a Jenkins build with pre-built stc and librun. 
    49   # Used to download pre-build stc and librun
    49   # Used to download pre-build stc and librun
    50   def self.smalltalkx_jv_branch_build
    50   def self.smalltalkx_jv_branch_build
    51     plat = nil
    51     return Jenkins::Build.new(%Q{https://swing.fit.cvut.cz/jenkins/job/stx_jv/lastStableBuild})
    52     if win32?
       
    53       plat = 'Windows'
       
    54     elsif linux?
       
    55       plat = 'Linux'
       
    56     else
       
    57       error_unsupported_platform
       
    58     end
       
    59     return Jenkins::Build.new(%Q{https://swing.fit.cvut.cz/jenkins/job/stx_jv/ARCH=#{ARCH},PLATFORM=#{plat}N/lastSuccessfulBuild})
       
    60   end
    52   end
    61 
    53 
    62   class Artifact
    54   class Artifact
    63     attr_reader :name
    55     attr_reader :name
    64     attr_reader :uri
    56     attr_reader :uri