Change promoter to use HTTP to access build artifacts
diff --git a/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$1.class b/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$1.class
index 6e9b431..8cab875 100644
--- a/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$1.class
+++ b/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$1.class
Binary files differ
diff --git a/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$2.class b/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$2.class
deleted file mode 100644
index 9aa4a5f..0000000
--- a/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git$2.class
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git.class b/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git.class
index e651b13..8525a1a 100644
--- a/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git.class
+++ b/org.eclipse.emf.cdo.releng.promotion/promotion/promoter/classes/promoter/Git.class
Binary files differ
diff --git a/org.eclipse.emf.cdo.releng.promotion/src/promoter/Git.java b/org.eclipse.emf.cdo.releng.promotion/src/promoter/Git.java
index 8f845e0..8efa872 100644
--- a/org.eclipse.emf.cdo.releng.promotion/src/promoter/Git.java
+++ b/org.eclipse.emf.cdo.releng.promotion/src/promoter/Git.java
@@ -10,9 +10,6 @@
*/
package promoter;
-import promoter.util.IO;
-import promoter.util.IO.OutputHandler;
-
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
@@ -20,6 +17,9 @@
import java.io.OutputStream;
import java.io.PrintStream;
+import promoter.util.IO;
+import promoter.util.IO.OutputHandler;
+
/**
* @author Stefan Winkler
*/
@@ -64,25 +64,27 @@
@Override
public void setTag(final String branch, final String revision, final String qualifier)
{
- IO.executeProcess("/bin/bash", new OutputHandler()
- {
- public void handleOutput(OutputStream out) throws IOException
- {
- PrintStream stream = new PrintStream(out);
- fetchIfNeeded(stream);
+ // TODO No write access to direct Git anymore ;-(
- String tag = "drops/" + qualifier;
- System.out.println("Tagging " + revision + " in " + branch + " as " + tag);
-
- // Create the tag
- String message = qualifier + " in " + branch;
- stream.println(GIT_BINARY + " tag -a -m \"" + message + "\" \"" + tag + "\" \"" + revision + "\"");
-
- // Push the tag
- stream.println(GIT_BINARY + " push \"" + REMOTE_GIT + "\" \"" + tag + "\"");
- stream.flush();
- }
- });
+ // IO.executeProcess("/bin/bash", new OutputHandler()
+ // {
+ // public void handleOutput(OutputStream out) throws IOException
+ // {
+ // PrintStream stream = new PrintStream(out);
+ // fetchIfNeeded(stream);
+ //
+ // String tag = "drops/" + qualifier;
+ // System.out.println("Tagging " + revision + " in " + branch + " as " + tag);
+ //
+ // // Create the tag
+ // String message = qualifier + " in " + branch;
+ // stream.println(GIT_BINARY + " tag -a -m \"" + message + "\" \"" + tag + "\" \"" + revision + "\"");
+ //
+ // // Push the tag
+ // stream.println(GIT_BINARY + " push \"" + REMOTE_GIT + "\" \"" + tag + "\"");
+ // stream.flush();
+ // }
+ // });
}
@Override
@@ -125,8 +127,8 @@
if (!line.equals("--BEGIN-COMMIT--"))
{
- throw new IllegalStateException("Read unexpected line " + line + " at beginning of file "
- + outFile.getAbsolutePath());
+ throw new IllegalStateException(
+ "Read unexpected line " + line + " at beginning of file " + outFile.getAbsolutePath());
}
// first line successfully read. Start processing of log entries: