Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-11-17 18:45:12 +0000
committerFlorian Waibel2015-11-17 18:45:12 +0000
commit493b68bcba9237da399b1cc7e6cb60a12ec3ced3 (patch)
tree27879e282a9a175fec05efc9723b6a0efb376d72
parent3b91140e2aaef0ea5fb45644a96903bb33fbcb65 (diff)
downloadorg.eclipse.gemini.blueprint-493b68bcba9237da399b1cc7e6cb60a12ec3ced3.tar.gz
org.eclipse.gemini.blueprint-493b68bcba9237da399b1cc7e6cb60a12ec3ced3.tar.xz
org.eclipse.gemini.blueprint-493b68bcba9237da399b1cc7e6cb60a12ec3ced3.zip
Adds script to upload Gemini Blueprint Bundles to Virgo mirror
-rw-r--r--gradle.properties11
-rw-r--r--publish.gradle38
-rw-r--r--uploadGeminiBlueprint.gradle35
3 files changed, 84 insertions, 0 deletions
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..04a1201
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,11 @@
+# sftp server url
+ECLIPSE_ORG_FTP_HOST=build.eclipse.org
+
+# sftp username
+ECLIPSE_ORG_FTP_USER=virgoBuild
+
+# sftp key
+ECLIPSE_ORG_FTP_IDENTITY=id_virgoBuild_rsa
+
+# absolute path to the root of the update-sites mirror
+ECLIPSE_ORG_FTP_MIRROR_PATH=/shared/rt/virgo/ivy/bundles/release
diff --git a/publish.gradle b/publish.gradle
new file mode 100644
index 0000000..3679c33
--- /dev/null
+++ b/publish.gradle
@@ -0,0 +1,38 @@
+apply plugin: 'ivy-publish'
+
+buildscript {
+ repositories { mavenCentral() }
+ dependencies {
+ classpath 'org.apache.ivy:ivy:2.4.0'
+ classpath 'com.jcraft:jsch:0.1.53'
+ }
+}
+
+def version = '2.0.0.M03'
+
+publishing {
+ publications {
+ blueprintIo(IvyPublication) {
+ organisation 'org.eclipse.virgo.mirrored'
+ module 'org.eclipse.gemini.blueprint.io'
+ revision "${version}"
+ artifact(file("io/target/gemini-blueprint-io-${version}.jar"))
+ }
+ blueprintCore(IvyPublication) {
+ organisation 'org.eclipse.virgo.mirrored'
+ module 'org.eclipse.gemini.blueprint.core'
+ revision "${version}"
+ artifact(file("core/target/gemini-blueprint-core-${version}.jar"))
+ }
+ blueprintExtender(IvyPublication) {
+ organisation 'org.eclipse.virgo.mirrored'
+ module 'org.eclipse.gemini.blueprint.extender'
+ revision "${version}"
+ artifact(file("extender/target/gemini-blueprint-extender-${version}.jar"))
+ }
+ }
+
+ repositories {
+ ivy { url "$buildDir" }
+ }
+}
diff --git a/uploadGeminiBlueprint.gradle b/uploadGeminiBlueprint.gradle
new file mode 100644
index 0000000..d6c399b
--- /dev/null
+++ b/uploadGeminiBlueprint.gradle
@@ -0,0 +1,35 @@
+plugins { id 'org.hidetake.ssh' version '1.1.4' }
+
+remotes {
+ eclipseDotOrg {
+ host = ECLIPSE_ORG_FTP_HOST
+ user = ECLIPSE_ORG_FTP_USER
+ identity = file(System.properties['user.home'] + "/.ssh/${ECLIPSE_ORG_FTP_IDENTITY}")
+ knownHosts = file(System.properties['user.home'] + "/.ssh/known_hosts")
+ }
+}
+
+def version = '2.0.0.M03'
+def groupId = 'org.eclipse.virgo.mirrored'
+def mirrorPath = ECLIPSE_ORG_FTP_MIRROR_PATH
+
+task uploadGeminiBlueprint << {
+ [
+ "io",
+ "core",
+ "extender"
+ ].each { module ->
+ println "Uploading ${module} to ${remotes.eclipseDotOrg.host}..."
+ def modulePath = "${groupId}/org.eclipse.gemini.blueprint.${module}/${version}"
+ ssh.run {
+ session(remotes.eclipseDotOrg) {
+ execute "mkdir -p ${mirrorPath}/${modulePath}"
+ put from: "${buildDir}/${modulePath}/ivy-${version}.xml", into: "${mirrorPath}/${modulePath}"
+ put from: "${buildDir}/${modulePath}/ivy-${version}.xml.sha1", into: "${mirrorPath}/${modulePath}"
+ put from: "${buildDir}/${modulePath}/org.eclipse.gemini.blueprint.${module}-${version}.jar", into: "${mirrorPath}/${modulePath}"
+ put from: "${buildDir}/${modulePath}/org.eclipse.gemini.blueprint.${module}-${version}.jar.sha1", into: "${mirrorPath}/${modulePath}"
+ }
+ }
+ println "done."
+ }
+}

Back to the top