Skip to content
This repository was archived by the owner on Feb 28, 2019. It is now read-only.

Commit 38a7c90

Browse files
committed
Make sure the release stages and installs dependency locally to simplify downstream builds if any
1 parent 1d107a2 commit 38a7c90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tasks/release.rake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ task 'perform_release' do
5151
end
5252

5353
stage('Build', 'Build the project to ensure that the tests pass') do
54-
sh "bundle exec buildr clean package PRODUCT_VERSION=#{ENV['PRODUCT_VERSION']}"
54+
sh "bundle exec buildr clean package install PRODUCT_VERSION=#{ENV['PRODUCT_VERSION']}"
5555
end
5656

5757
stage('PatchChangelog', 'Patch the changelog to update from previous release') do
@@ -81,6 +81,12 @@ HEADER
8181
sh "git tag v#{ENV['PRODUCT_VERSION']}"
8282
end
8383

84+
stage('StageRelease', 'Stage the release') do
85+
IO.write('_buildr.rb', "repositories.release_to = { :url => 'https://stocksoftware.jfrog.io/stocksoftware/staging', :username => '#{ENV['STAGING_USERNAME']}', :password => '#{ENV['STAGING_PASSWORD']}' }")
86+
sh 'bundle exec buildr clean upload TEST=no GWT=no'
87+
sh 'rm -f _buildr.rb'
88+
end
89+
8490
stage('MavenCentralPublish', 'Publish artifacts to Maven Central') do
8591
sh 'bundle exec buildr clean mcrt:publish_if_tagged site:publish_if_tagged TEST=no GWT=no'
8692
end

0 commit comments

Comments
 (0)