Skip to content

Commit

Permalink
Merge Xtext's deployment Jenkins pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Apr 20, 2023
1 parent 445b047 commit 0027cc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ pipeline {
}

parameters {
choice(name: 'RELEASE_TYPE', choices: ['M0', 'M1', 'M2', 'M3', 'RC1', 'RC2', 'GA'], description:
choice(name: 'DEPLOYMENT_TYPE', choices: ['nightly' /*first is default*/, 'M0', 'M1', 'M2', 'M3', 'RC1', 'RC2', 'GA'], description:
'''
Kind of milestone release to build.
''')
}

triggers { // https://jenkins.io/doc/book/pipeline/syntax/#triggers
cron('50 21 * * *') // nightly at 21:50
}

environment {
DOWNLOAD_AREA = '/home/data/httpd/download.eclipse.org/modeling/tmf/xtext'
REPOSITORY_PATH="${DOWNLOAD_AREA}/updates/milestones"
REPOSITORY_PATH="${DOWNLOAD_AREA}/updates/${params.DEPLOYMENT_TYPE == 'nightly' ? 'nightly' : 'milestones'}"
}

tools {
Expand All @@ -36,8 +40,11 @@ pipeline {
}
}
stage('Prepare versions for Milestone') {
when {
expression { return params.DEPLOYMENT_TYPE != 'nightly'}
}
steps {
sh './scripts/prepare-for-milestone.sh ${RELEASE_TYPE}'
sh './scripts/prepare-for-milestone.sh ${DEPLOYMENT_TYPE}'
}
}
stage('Maven Tycho Build, Sign, Deploy') {
Expand All @@ -47,7 +54,7 @@ pipeline {
sh 'for fpr in $(gpg --list-keys --with-colons | awk -F: \'/fpr:/ {print $10}\' | sort -u); do echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key ${fpr} trust; done'
}
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh './full-deploy.sh -Peclipse-sign,sonatype-oss-release,release-milestone'
sh "./full-deploy.sh -Peclipse-sign,sonatype-oss-release,${params.DEPLOYMENT_TYPE == 'nightly' ? 'release-snapshot' : 'release-milestone'}"
}
}
}
Expand Down
54 changes: 0 additions & 54 deletions jenkins/nightly-deploy/Jenkinsfile

This file was deleted.

0 comments on commit 0027cc7

Please sign in to comment.