1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-10-28 03:38:54 +03:00
vimr/ci/create_build_snapshot_job.groovy

53 lines
1.0 KiB
Groovy
Raw Normal View History

// 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".
def buildSnapshotJob = freeStyleJob('vimr_build_snapshot')
buildSnapshotJob.with {
2016-08-19 08:38:08 +03:00
description '''\
Builds a new snapshot of VimR and pushes the tag:<br>
<ul>
<li>
<a href="lastSuccessfulBuild/artifact/build/Release/">Last successful Release</a>
</li>
</ul>
'''
logRotator {
numToKeep(30)
}
parameters {
stringParam('BRANCH', 'master', 'Branch to build; defaults to master')
textParam('RELEASE_NOTES', null, 'Release notes')
}
scm {
git {
remote {
url('git@github.com:qvacua/vimr.git')
}
branch('*/${BRANCH}')
}
}
wrappers {
timestamps()
colorizeOutput()
}
steps {
shell('./bin/build_snapshot.sh')
}
publishers {
archiveArtifacts {
pattern('build/Release/**')
onlyIfSuccessful()
}
}
}