1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-30 16:51:59 +03:00
vimr/ci/create_build_job.groovy
2023-12-14 17:11:19 +01:00

48 lines
1.1 KiB
Groovy

// Install the following plugins in addition to recommended plugins when installing Jenkins
// - Job DSL
// - AnsiColor
def releaseVimRJob = freeStyleJob('vimr_release')
releaseVimRJob.with {
description 'Release a new version'
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')
onlyIfSuccessful()
}
}
}