summaryrefslogtreecommitdiffstats
authorAntoine Toulme2010-07-02 22:12:47 (EDT)
committer Antoine Toulme2010-07-02 22:12:47 (EDT)
commitd45b15c55b9cd457820de134592d8bc18aa62fb0 (patch) (side-by-side diff)
tree10e1ddd30099ec3429d3648bd8090a8a06923050
parentd45362e1b0a8b9d7662dd2771180ec3a321fa2a5 (diff)
downloadbpmnmodeler-d45b15c55b9cd457820de134592d8bc18aa62fb0.zip
bpmnmodeler-d45b15c55b9cd457820de134592d8bc18aa62fb0.tar.gz
bpmnmodeler-d45b15c55b9cd457820de134592d8bc18aa62fb0.tar.bz2
use a temporary folder for signing, to avoid concurrency
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--buildfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/buildfile b/buildfile
index 76600ff..2dc2ae4 100644
--- a/buildfile
+++ b/buildfile
@@ -39,17 +39,18 @@ LAUNCHER="java -jar /shared/stp/platforms/releng/M7_34/org.eclipse.releng.basebu
# This method may take a long time as signing works as a queue.
def sign(artifact, output = artifact, send_email = true)
puts "Start signing of #{artifact}"
- File.makedirs SIGN_STAGING + "/signed"
+ signed_folder = File.basename artifact
+ File.makedirs SIGN_STAGING + "/signed_folder"
system("cp #{artifact} #{SIGN_STAGING}")
mail = send_email ? "mail" : "nomail"
- puts %x[/usr/bin/sign #{SIGN_STAGING}/#{File.basename artifact} #{mail} #{SIGN_STAGING}/signed]
+ puts %x[/usr/bin/sign #{SIGN_STAGING}/#{File.basename artifact} #{mail} #{SIGN_STAGING}/#{signed_folder}]
- while (!File.exist?"#{SIGN_STAGING}/signed/#{File.basename artifact}")
+ while (!File.exist?"#{SIGN_STAGING}/#{signed_folder}/#{File.basename artifact}")
puts "Signing not complete. Waiting for 2 more minutes..."
sleep 120
end
system("cp #{SIGN_STAGING}/signed/#{File.basename artifact} #{output}")
- system "rm -rf #{SIGN_STAGING}/#{File.basename artifact} #{SIGN_STAGING}/signed"
+ system "rm -rf #{SIGN_STAGING}/#{File.basename artifact} #{SIGN_STAGING}/#{signed_folder}"
puts "Done signing, copied final file here: #{output}"
end