summaryrefslogtreecommitdiffstats
authorAntoine Toulme2010-07-02 22:28:12 (EDT)
committer Antoine Toulme2010-07-02 22:28:12 (EDT)
commitcc650907f16f264789b183d25652c93272e3559e (patch) (side-by-side diff)
tree7b48cc282befbec40b1f30b141fde5c368d9084c
parenta5186dd381b10a7344f0e92e8f4a1db62facee9b (diff)
downloadbpmnmodeler-cc650907f16f264789b183d25652c93272e3559e.zip
bpmnmodeler-cc650907f16f264789b183d25652c93272e3559e.tar.gz
bpmnmodeler-cc650907f16f264789b183d25652c93272e3559e.tar.bz2
more signing goofing
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--buildfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildfile b/buildfile
index 341cc2e..066ba53 100644
--- a/buildfile
+++ b/buildfile
@@ -40,16 +40,16 @@ LAUNCHER="java -jar /shared/stp/platforms/releng/M7_34/org.eclipse.releng.basebu
def sign(artifact, output = artifact, send_email = true)
puts "Start signing of #{artifact}"
signed_folder = File.basename(artifact).gsub(/\./, "_")
- File.makedirs SIGN_STAGING + "/signed_folder"
+ 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_folder}]
-
+ fail "Signing failed " if $? != 0
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("cp #{SIGN_STAGING}/#{signed_folder}/#{File.basename artifact} #{output}")
system "rm -rf #{SIGN_STAGING}/#{File.basename artifact} #{SIGN_STAGING}/#{signed_folder}"
puts "Done signing, copied final file here: #{output}"
end