booleanParam(name: 'DO_INSTALL', defaultValue: true, description: '')
booleanParam(name: 'DO_DOCKERPUSH', defaultValue: true, description: '')
booleanParam(name: 'DO_ROBOT', defaultValue: true, description: '')
-
+
// Module configuration
string(name: 'MODULE_NAME', defaultValue: 'tests', description: 'Name of the module under test')
string(name: 'IMAGENAME', defaultValue: 'opensourcemano/tests', description: 'Image name for publish')
-#!/bin/sh
+#!/bin/bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
check_crlf_terminators () {
folder="$1"
crlf_terminators="y"
- ! (find ${folder} -not -type d -exec file "{}" ";" | grep CRLF) && crlf_terminators=""
+ ! grep -r $'\r' ${folder} && crlf_terminators=""
[ -n "${crlf_terminators}" ] && \
echo "Some files in ${folder} have CRLF at the end of some lines" && \
echo "Use this command to change it:" && \
Log ${rc},${output}
${rc} ${resourceState}= Run And Return Rc And Output osm cluster-show ${cluster_name} -o jsonpath='{.resourceState}'
Log ${rc},${resourceState}
- IF '$rc' == '$SUCCESS_RETURN_CODE' and '$resourceState' == 'ERROR'
+ IF "${rc}" == "${SUCCESS_RETURN_CODE}" and "${resourceState}" == "ERROR"
Fail Cluster is in error state and will not be deleted.
ELSE
Log Either the cluster ${cluster_name} has been deleted or it is in a valid state.