Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Fix tests. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoebelL authored Nov 16, 2020
1 parent 3930194 commit ecbfe58
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion shared/start.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,29 @@

void execute(String FQDN = env.NODE_NAME + '.intern.est.fujitsu.com') {


def _fixPermissionsForTesting = {
sh '''
if [ ${COMPLETE_CLEANUP} == "false" ]; then
mkdir -p ${WORKSPACE}/backup
cp -r ${WORKSPACE}/docker/config ${WORKSPACE}/backup
cp -r ${WORKSPACE}/docker/data ${WORKSPACE}/backup
cp -r ${WORKSPACE}/docker/logs ${WORKSPACE}/backup
fi;
rm -rf ${WORKSPACE}/docker
mkdir -p ${WORKSPACE}/docker/config/oscm-identity/tenants/
if [ ${COMPLETE_CLEANUP} == "false" ]; then
mkdir -p ${WORKSPACE}/backup
cp -r ${WORKSPACE}/backup/config ${WORKSPACE}/docker
cp -r ${WORKSPACE}/backup/data ${WORKSPACE}/docker
cp -r ${WORKSPACE}/backup/logs ${WORKSPACE}/docker
rm -rf ${WORKSPACE}/backup
fi;
'''
}

def _createEnvTemplates = {
stage('Start - create env templates') {
Expand Down Expand Up @@ -152,6 +174,7 @@ void execute(String FQDN = env.NODE_NAME + '.intern.est.fujitsu.com') {
}


_fixPermissionsForTesting()
_createEnvTemplates()
_setupEnv()
_setupVarEnv()
Expand Down

0 comments on commit ecbfe58

Please sign in to comment.