From 6a50a72803c8c1cbfcf8ed971c9ed3a00f34278f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 17 Apr 2018 14:04:27 +0200 Subject: [PATCH] Adding create-vmware-template.groovy --- create-vmware-template.groovy | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 create-vmware-template.groovy diff --git a/create-vmware-template.groovy b/create-vmware-template.groovy new file mode 100644 index 0000000..daeb677 --- /dev/null +++ b/create-vmware-template.groovy @@ -0,0 +1,60 @@ +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' + +STEPS = '''#!/bin/bash + +if [[ ! -f venv/bin/activate ]] ; then + virtualenv-3 venv +fi + +. venv/bin/activate + +pip --upgrade --requirement requirements.txt + +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") { + + scm { + git { + remote { + url("git@git.pixelpark.com:${group}/${projectName}.git") + credentials('d1d6ad59-8d5a-45b4-acfb-64a36d7fd8cd') + } + branch('*/master') + } + } + + steps { + shell(STEPS) + } + + wrappers { + colorizeOutput() + } + +} + +// vim: ts=2 et -- 2.39.5