-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contributed on behalf of STMicroelectronics Signed-off-by: Johannes Faltermeier <[email protected]>
- Loading branch information
1 parent
1ccbd0e
commit 852aec2
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -399,12 +399,12 @@ def uploadInstaller(String platform) { | |
def packageJSON = readJSON file: "package.json" | ||
String version = "${packageJSON.version}" | ||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
sh "ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/theia/${version}/${platform}" | ||
sh "ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/theia/${version}/${platform}" | ||
sh "scp ${distFolder}/*.* [email protected]:/home/data/httpd/download.eclipse.org/theia/${version}/${platform}" | ||
sh "ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/theia/latest/${platform}" | ||
sh "ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/theia/latest/${platform}" | ||
sh "scp ${distFolder}/*.* [email protected]:/home/data/httpd/download.eclipse.org/theia/latest/${platform}" | ||
sh "ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}" | ||
sh "ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}" | ||
sh "scp ${distFolder}/*.* [email protected]:/home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}" | ||
sh "ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}" | ||
sh "ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}" | ||
sh "scp ${distFolder}/*.* [email protected]:/home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}" | ||
} | ||
} else { | ||
echo "Skipped upload for branch ${env.BRANCH_NAME}" | ||
|
@@ -421,16 +421,16 @@ def copyInstallerAndUpdateLatestYml(String platform, String installer, String ex | |
def packageJSON = readJSON file: "package.json" | ||
String version = "${packageJSON.version}" | ||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}.${extension} /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}-${version}.${extension}" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/${version}/${platform}/${installer}.${extension} /home/data/httpd/download.eclipse.org/theia/${version}/${platform}/${installer}-${version}.${extension}" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}.${extension}.blockmap /home/data/httpd/download.eclipse.org/theia/latest/${platform}/${installer}-${version}.${extension}.blockmap" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/${version}/${platform}/${installer}.${extension}.blockmap /home/data/httpd/download.eclipse.org/theia/${version}/${platform}/${installer}-${version}.${extension}.blockmap" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}/${installer}.${extension} /home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}/${installer}-${version}.${extension}" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}/${installer}.${extension} /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}/${installer}-${version}.${extension}" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}/${installer}.${extension}.blockmap /home/data/httpd/download.eclipse.org/theia/ide/latest/${platform}/${installer}-${version}.${extension}.blockmap" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}/${installer}.${extension}.blockmap /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}/${installer}-${version}.${extension}.blockmap" | ||
} | ||
if (UPDATABLE_VERSIONS.length() != 0) { | ||
for (oldVersion in UPDATABLE_VERSIONS.split(",")) { | ||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
sh "ssh [email protected] rm -f /home/data/httpd/download.eclipse.org/theia/${oldVersion}/${platform}/${yaml}" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/${version}/${platform}/${yaml} /home/data/httpd/download.eclipse.org/theia/${oldVersion}/${platform}/${yaml}" | ||
sh "ssh [email protected] rm -f /home/data/httpd/download.eclipse.org/theia/ide/${oldVersion}/${platform}/${yaml}" | ||
sh "ssh [email protected] cp /home/data/httpd/download.eclipse.org/theia/ide/${version}/${platform}/${yaml} /home/data/httpd/download.eclipse.org/theia/ide/${oldVersion}/${platform}/${yaml}" | ||
} | ||
} | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters