From f7ad2331f9d2016435739b756e217fa5d4c9aa97 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 19 Apr 2018 14:48:41 +0200 Subject: [PATCH] Extending executed shell script --- create_vmware_template.groovy | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/create_vmware_template.groovy b/create_vmware_template.groovy index 7ce0fb4..401c6ca 100644 --- a/create_vmware_template.groovy +++ b/create_vmware_template.groovy @@ -9,15 +9,42 @@ def emailReceivers = 'frank.brehm@pixelpark.com' STEPS = '''#!/bin/bash +echo +echo "---------------------------------------------------" +echo "Aktuelles Arvbeitsverzeichnis: '$( pwd )'" +echo "Workspace: '${WORKSPACE}'" +echo "Git URL / Branch: '${GIT_URL}' / '${GIT_BRANCH}'" +echo "Git Committer: '${GIT_COMMITTER_NAME}' <${GIT_COMMITTER_EMAIL}>" +echo "Git Autor: '${GIT_AUTHOR_NAME}' <${GIT_AUTHOR_EMAIL}>" +echo +echo "Build-Nummer: ${BUILD_NUMBER}" +echo "Build ID: ${BUILD_ID}" +echo + +echo "---------------------------------------------------" +echo "Preparing virtual environment ..." +echo if [[ ! -f venv/bin/activate ]] ; then virtualenv-3 venv fi . venv/bin/activate +echo +echo "---------------------------------------------------" +echo "Installing and/or upgrading necessary modules ..." +echo pip install --upgrade --requirement requirements.txt +echo +echo "---------------------------------------------------" +echo "Installed modules:" +echo pip list --format columns +echo +echo "---------------------------------------------------" +echo "Executing ..." +echo bin/create-vmware-template --help ''' -- 2.39.5