Skip to content

Commit

Permalink
[do not merge] Archive artifacts on Jenkins for verifying build and test
Browse files Browse the repository at this point in the history
whether connection to download.eclipse.org area works with new agent

Conflicts:
	Jenkinsfile
  • Loading branch information
jfaltermeier committed Aug 27, 2021
1 parent 7d25897 commit 7c40012
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Jenkinsfile
Expand Up @@ -217,10 +217,12 @@ spec:
script {
signInstaller('exe', 'winsign')
updateMetadata('../dist/TheiaBlueprint.exe', '../dist/latest.yml')
archiveArtifacts artifacts: 'applications/electron/dist/**', fingerprint: false
}
}
container('jnlp') {
script {
testConnectivityToDownloadEclipse('windows')
uploadInstaller('windows')
linkInstaller('windows', 'TheiaBlueprint', 'exe')
}
Expand Down Expand Up @@ -316,6 +318,15 @@ def uploadInstaller(String platform) {
}
}

def testConnectivityToDownloadEclipse(String platform) {
def packageJSON = readJSON file: "package.json"
String version = "${packageJSON.version}"
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh "ssh genie.theia@projects-storage.eclipse.org echo List dir"
sh "ssh genie.theia@projects-storage.eclipse.org ls -al /home/data/httpd/download.eclipse.org/theia/${version}/${platform}"
}
}

def linkInstaller(String platform, String installer, String extension) {
if (env.BRANCH_NAME == releaseBranch) {
def packageJSON = readJSON file: "package.json"
Expand Down

0 comments on commit 7c40012

Please sign in to comment.