From: Frank Brehm Date: Thu, 19 Apr 2018 11:35:25 +0000 (+0200) Subject: Renaming create-vmware-template.groovy -> create_vmware_template.groovy X-Git-Tag: 0.1.1~24 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=08d791db64fc022f1ae86c014745b0766701cd53;p=pixelpark%2Fcreate-vmware-tpl.git Renaming create-vmware-template.groovy -> create_vmware_template.groovy --- diff --git a/create-vmware-template.groovy b/create-vmware-template.groovy deleted file mode 100644 index d599d0d..0000000 --- a/create-vmware-template.groovy +++ /dev/null @@ -1,93 +0,0 @@ -def group = "ppadmin" -def projectName = "create-vmeare-tpl" -def gitServerUrl = "git.pixelpark.com" -def gitCloneUrl = "git@${gitServerUrl}:${group}/${projectName}.git" -def normalizedName = "${group}-${projectName}".replaceAll('/','-') -def jenkinsJobAdmins = ['frabrehm', 'mickraus', 'grenaeck', 'andschme'] -//def emailReceivers = 'frank.brehm@pixelpark.com, michael.krause@pixelpark.com, andre.schmelzer@pixelpark.com, gregor.naeckel@pixelpark.com' -def emailReceivers = 'frank.brehm@pixelpark.com' - -STEPS = '''#!/bin/bash - -if [[ ! -f venv/bin/activate ]] ; then - virtualenv-3 venv -fi - -. venv/bin/activate - -pip install --upgrade --requirement requirements.txt -pip list --format columns - -bin/create-vmware-template --help - -''' - -listView("create-vmware-template") { - jobs { - regex("create-vmware-template.*") - } - columns { - status() - weather() - name() - lastSuccess() - lastFailure() - lastDuration() - buildButton() - } -} - -job("create-vmware-template") { - - parameters { - gitParam('GIT_BRANCH') { - description('Bitte zu bauenden Branch waehlen') - type('BRANCH') - branch('*/master') - tagFilter('*') - sortMode('ASCENDING') - defaultValue('origin/master') - } - } - -/* - triggers { - cron(‘25 3 * * *’) - } -*/ - - scm { - git { - remote { - url("git@git.pixelpark.com:${group}/${projectName}.git") - credentials('d1d6ad59-8d5a-45b4-acfb-64a36d7fd8cd') - } - branch('${GIT_BRANCH}') - extensions { - pruneBranches() - } - browser { - stash("https://${gitServerUrl}/${group}/${projectName}") - } - } - } - - step { - shell(STEPS) - } - - wrappers { - colorizeOutput() - } - - publishers {} - - authorization { - jenkinsJobAdmins.each { name -> - permissionAll(name) - } - } - -} - -// vim: ts=2 et diff --git a/create_vmware_template.groovy b/create_vmware_template.groovy new file mode 100644 index 0000000..d599d0d --- /dev/null +++ b/create_vmware_template.groovy @@ -0,0 +1,93 @@ +def group = "ppadmin" +def projectName = "create-vmeare-tpl" +def gitServerUrl = "git.pixelpark.com" +def gitCloneUrl = "git@${gitServerUrl}:${group}/${projectName}.git" +def normalizedName = "${group}-${projectName}".replaceAll('/','-') +def jenkinsJobAdmins = ['frabrehm', 'mickraus', 'grenaeck', 'andschme'] +//def emailReceivers = 'frank.brehm@pixelpark.com, michael.krause@pixelpark.com, andre.schmelzer@pixelpark.com, gregor.naeckel@pixelpark.com' +def emailReceivers = 'frank.brehm@pixelpark.com' + +STEPS = '''#!/bin/bash + +if [[ ! -f venv/bin/activate ]] ; then + virtualenv-3 venv +fi + +. venv/bin/activate + +pip install --upgrade --requirement requirements.txt +pip list --format columns + +bin/create-vmware-template --help + +''' + +listView("create-vmware-template") { + jobs { + regex("create-vmware-template.*") + } + columns { + status() + weather() + name() + lastSuccess() + lastFailure() + lastDuration() + buildButton() + } +} + +job("create-vmware-template") { + + parameters { + gitParam('GIT_BRANCH') { + description('Bitte zu bauenden Branch waehlen') + type('BRANCH') + branch('*/master') + tagFilter('*') + sortMode('ASCENDING') + defaultValue('origin/master') + } + } + +/* + triggers { + cron(‘25 3 * * *’) + } +*/ + + scm { + git { + remote { + url("git@git.pixelpark.com:${group}/${projectName}.git") + credentials('d1d6ad59-8d5a-45b4-acfb-64a36d7fd8cd') + } + branch('${GIT_BRANCH}') + extensions { + pruneBranches() + } + browser { + stash("https://${gitServerUrl}/${group}/${projectName}") + } + } + } + + step { + shell(STEPS) + } + + wrappers { + colorizeOutput() + } + + publishers {} + + authorization { + jenkinsJobAdmins.each { name -> + permissionAll(name) + } + } + +} + +// vim: ts=2 et