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, michael.krause@pixelpark.com, andre.schmelzer@pixelpark.com, gregor.naeckel@pixelpark.com'
+def emailReceivers = 'frank.brehm@pixelpark.com'
STEPS = '''#!/bin/bash
. venv/bin/activate
-pip --upgrade --requirement requirements.txt
+pip install --upgrade --requirement requirements.txt
+pip list --format columns
bin/create-vmware-template --help
job("create-vmware-template") {
+ parameters {
+ gitParam('GIT_BRANCH') {
+ description('Bitte zu bauenden Branch waehlen')
+ type('BRANCH')
+ branch('*/master')
+ tagFilter('*')
+ sortMode('ASCENDING')
+ defaultValue('origin/master')
+ }
+ }
+
scm {
git {
remote {
url("git@git.pixelpark.com:${group}/${projectName}.git")
credentials('d1d6ad59-8d5a-45b4-acfb-64a36d7fd8cd')
}
- branch('*/master')
+ branch('${GIT_BRANCH}')
+ extensions {
+ pruneBranches()
+ }
+ browser {
+ stash("https://${gitServerUrl}/${group}/${projectName}")
+ }
}
}
- steps {
+ step {
shell(STEPS)
}
colorizeOutput()
}
+ publishers {}
+
+ authorization {
+ jenkinsJobAdmins.each { name ->
+ permissionAll(name)
+ }
+ }
+
}
// vim: ts=2 et