Skip to content

Commit

Permalink
Do not upload release packages to apt automatically
Browse files Browse the repository at this point in the history
Summary:
Jenkins automatically triggers upload of new debian packages for
openMHA releases to our apt repository.

But because we still need to check that all installers function after
they have been created, this is too early.

Remove this automatism and provide a way to trigger it manually after
checks.

Closes T1117

Test Plan: Will be tested today during release. Review before the release.

Reviewers: pmaanen, MaxZ

Reviewed By: MaxZ

Maniphest Tasks: T1117

Differential Revision: https://dev.openmha.org/D493
  • Loading branch information
tobiasherzke committed Nov 27, 2020
1 parent 15d9129 commit 4680551
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,17 @@ pipeline {
}
stage("debian packages for apt") {
agent {label "aptly"}
// do not publish packages for any branches except these
when { anyOf { branch 'master'; branch 'development' } }
// publish packages for branch development automatically
when { branch 'development' }

// Releases are not automatically uploaded to apt because
// we still need to check that all installers function
// after they have been created. When this verification has
// been done, then start a Replay build of master on Jenkins,
// and change this Jenkinsfile as follows: comment-out the "when"
// line above, remove the comment before the following "when"
// line, and then Run the replay build.
// when { anyOf { branch 'master'; branch 'development' } }
steps {
// receive all deb packages from openmha build
unstash "x86_64_bionic"
Expand Down
6 changes: 6 additions & 0 deletions mha/tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ fi
echo "Now the mac and windows installers need to be attached to the github release."
echo "Answer yes when finished."
ask_yes_no
echo "Now the Linux installers need to be published to our apt repository."
echo "Open Jenkins in webbrowser, navigate to the last openMHA master branch build,"
echo "select replay, then search in the Jenkinsfile for the comment containing"
echo '"Releases are not automatically" ... and follow the instructions in this comment.'
echo "Answer yes when finished."
ask_yes_no

if $dry_run
then
Expand Down

0 comments on commit 4680551

Please sign in to comment.