1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-03 00:54:42 +03:00
vimr/ci/create_build_job.groovy

48 lines
1.1 KiB
Groovy
Raw Normal View History

2023-12-12 19:41:00 +03:00
// Install the following plugins in addition to recommended plugins when installing Jenkins
// - Job DSL
// - AnsiColor
def releaseVimRJob = freeStyleJob('vimr_release')
2023-12-12 19:41:00 +03:00
releaseVimRJob.with {
description 'Release a new version'
2023-12-12 19:41:00 +03:00
logRotator {
numToKeep(10)
}
parameters {
stringParam('marketing_version', null, 'Eg "0.34.0". If "is_snapshot" is unchecked, you have to enter this.')
booleanParam('is_snapshot', true)
stringParam('branch', 'master', 'Branch to build; defaults to master')
textParam('release_notes', null, 'Release notes')
booleanParam('create_gh_release', false, 'Publish this release to Github?')
booleanParam('upload', false, 'Upload VimR to Github?')
booleanParam('update_appcast', false)
}
scm {
git {
remote {
url('git@github.com:qvacua/vimr.git')
}
branch('*/${branch}')
}
}
wrappers {
colorizeOutput()
}
steps {
shell('./bin/build_jenkins.sh')
}
publishers {
archiveArtifacts {
pattern('build/Build/Products/Release/**, release.spec.sh, release-notes.temp.md, appcast*, build_release.temp.sh')
2023-12-12 19:41:00 +03:00
onlyIfSuccessful()
}
}
}