Rakefiles: refactor Jenkins API for downloading (binary) artifacts
...to allow multiple "backends" in (near) future. Introduce a concept
of an arfifact repository. A repository contains multiple builds (currently
the API provides only access to `latestBuild()`), build contains multipe
artifacts. An artifact is essentially a downloadabe file.
This commit is a preparation for introduction of "simple HTTP listing"-based
repository as there's no public Jenkins instance anymore.
project :'stx:libjava:reports-common' do
import :'stx:jv-branch:for-reports-only'
end
project :'stx:libjava:reports' do
import :'stx:libjava:reports-common'
package 'stx:libjava', :test => true#, :lint => true
end
project :'stx:libjava:mauve' do
import :'stx:libjava:reports-common'
package 'stx:libjava/tests/mauve', :test => true
end
project :'stx:libjava:experiments:reports' do
import :'stx:libjava:reports-common'
package 'stx:libjava/experiments', :test => true, :lint => true
end
project :'stx:libjava:tools:reports' do
import :'stx:libjava:reports-common'
package 'stx:libjava/tools', :test => true, :lint => true
end
project :'stx:libjava:benchmarks' do
import :'stx:libjava:reports-common'
tasks do
task :'test:post' do
chdir BUILD_DIR / 'stx' / 'libjava' / 'benchmarks' / 'java' do
if not system 'ant'
raise Exception.new("Running benchmarks failed")
end
end
chdir BUILD_DIR / 'stx' / 'libjava' / 'benchmarks' do
if not system 'rake'
raise Exception.new("Running benchmarks failed")
end
end
end
end
end