2016-07-17 00:25:56 +03:00
|
|
|
// Install the following plugins in addition to recommended plugins when installing Jenkins
|
|
|
|
// - Job DSL
|
|
|
|
// - AnsiColor
|
2016-08-19 08:38:08 +03:00
|
|
|
//
|
|
|
|
// And set the "Markup Formatter" in "Manage Jenkins -> Configure Global Security" to "Safe HTML".
|
2016-07-17 00:25:56 +03:00
|
|
|
|
2016-10-14 23:10:15 +03:00
|
|
|
def buildSnapshotJob = freeStyleJob('vimr_build')
|
2016-07-17 00:25:56 +03:00
|
|
|
|
|
|
|
buildSnapshotJob.with {
|
2016-08-19 08:38:08 +03:00
|
|
|
description '''\
|
|
|
|
Builds a new snapshot of VimR and pushes the tag:<br>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2017-11-30 00:59:49 +03:00
|
|
|
<a href="lastSuccessfulBuild/artifact/build/Build/Products/Release/">Last successful Release</a>
|
2016-08-19 08:38:08 +03:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
'''
|
2016-07-17 00:25:56 +03:00
|
|
|
|
|
|
|
logRotator {
|
2017-05-17 23:31:38 +03:00
|
|
|
numToKeep(10)
|
2016-07-17 00:25:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
parameters {
|
2019-12-22 23:45:42 +03:00
|
|
|
booleanParam('publish', true, 'Publish this release to Github?')
|
|
|
|
stringParam('branch', 'develop', 'Branch to build; defaults to develop')
|
2020-02-15 10:32:41 +03:00
|
|
|
stringParam('marketing_version', null, 'Eg "0.34.0". If "is_snapshot" is unchecked, you have to enter this.')
|
2019-12-22 23:45:42 +03:00
|
|
|
textParam('release_notes', null, 'Release notes')
|
|
|
|
booleanParam('is_snapshot', true)
|
|
|
|
booleanParam('update_appcast', true)
|
|
|
|
booleanParam('update_snapshot_appcast_for_release', true)
|
2020-02-14 22:19:55 +03:00
|
|
|
booleanParam('use_cache_carthage', false)
|
2016-07-17 00:25:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
scm {
|
|
|
|
git {
|
|
|
|
remote {
|
|
|
|
url('git@github.com:qvacua/vimr.git')
|
|
|
|
}
|
|
|
|
branch('*/${BRANCH}')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wrappers {
|
|
|
|
colorizeOutput()
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
2016-10-14 23:10:15 +03:00
|
|
|
shell('./bin/build.sh')
|
2016-07-17 00:25:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
publishers {
|
|
|
|
archiveArtifacts {
|
2017-11-30 00:59:49 +03:00
|
|
|
pattern('build/Build/Products/Release/**')
|
2016-07-17 00:25:56 +03:00
|
|
|
onlyIfSuccessful()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|