Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorJan Belle2019-04-02 07:30:08 -0400
committerJan Belle2019-04-02 10:11:28 -0400
commitd941d5a98db578e4bff2c284b06a498f1aab1c23 (patch)
tree80f8256a3c51dab667a1a8a62d4fae68fd9b6400 /releng
parentaf478656675a88011db86ea5a8bfd645e6c63d00 (diff)
downloadorg.eclipse.etrice-d941d5a98db578e4bff2c284b06a498f1aab1c23.tar.gz
org.eclipse.etrice-d941d5a98db578e4bff2c284b06a498f1aab1c23.tar.xz
org.eclipse.etrice-d941d5a98db578e4bff2c284b06a498f1aab1c23.zip
[releng] Migrate to new ci infrastructure
* promote artifacts via scp * increase xtext version to 2.15 Bug 545353 Change-Id: If8f0ab65f52970833861267792ab3b15e8fa07af
Diffstat (limited to 'releng')
-rw-r--r--releng/org.eclipse.etrice.parent/pom.xml4
-rw-r--r--releng/org.eclipse.etrice.releng/build.gradle47
2 files changed, 43 insertions, 8 deletions
diff --git a/releng/org.eclipse.etrice.parent/pom.xml b/releng/org.eclipse.etrice.parent/pom.xml
index ebd4060c9..3e8f801f2 100644
--- a/releng/org.eclipse.etrice.parent/pom.xml
+++ b/releng/org.eclipse.etrice.parent/pom.xml
@@ -22,8 +22,8 @@
<properties>
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
- <xtext.version>2.12.0</xtext.version>
- <tycho.version>1.1.0</tycho.version>
+ <xtext.version>2.15.0</xtext.version>
+ <tycho.version>1.3.0</tycho.version>
<cbi.version>1.1.4</cbi.version>
<eclipse.url>http://download.eclipse.org/releases/oxygen</eclipse.url>
diff --git a/releng/org.eclipse.etrice.releng/build.gradle b/releng/org.eclipse.etrice.releng/build.gradle
index 3e75a363e..d423e0cca 100644
--- a/releng/org.eclipse.etrice.releng/build.gradle
+++ b/releng/org.eclipse.etrice.releng/build.gradle
@@ -1,3 +1,7 @@
+plugins {
+ id 'org.hidetake.ssh' version '2.10.1'
+}
+
configurations {
archives
updates
@@ -12,21 +16,52 @@ dependencies {
updates project(path: ':releng:org.eclipse.etrice.site', configuration: 'archive')
}
-
-def downloadDir = '/home/data/httpd/download.eclipse.org/etrice'
-// downloadDir = "$buildDir/download"
+def isSnapshot = version.endsWith('SNAPSHOT')
def versionDir = version
-if(version.endsWith('SNAPSHOT')) {
+if(isSnapshot) {
versionDir = 'nightly'
}
+def downloadDir = '/home/data/httpd/download.eclipse.org/etrice'
def promoteDir = "$downloadDir/$versionDir"
+def assembleDir = "$buildDir/$versionDir"
-task promote(type: Sync) {
+remotes {
+ projectsStorage {
+ host = 'projects-storage.eclipse.org'
+ user = 'genie.etrice'
+ }
+}
+
+ssh.settings {
+ agent = true
+ fileTransfer = 'scp'
+}
+
+task assembleArtifacts(type: Sync) {
from([configurations.archives, configurations.updates]) {
into 'archives'
}
from(zipTree(configurations.updates.singleFile)) {
into 'updates'
}
- into promoteDir
+ into assembleDir
+}
+
+task promote {
+ dependsOn assembleArtifacts
+ doLast {
+ ssh.run {
+ session(remotes.projectsStorage) {
+ logger.info "clean download area"
+ remove promoteDir
+ execute "mkdir $promoteDir"
+
+ logger.info "promote archives"
+ put from: "$assembleDir/archives", into: promoteDir
+
+ logger.info "promote update site"
+ put from: "$assembleDir/updates", into: promoteDir
+ }
+ }
+ }
} \ No newline at end of file

Back to the top