- Improvement: using jenkins, a temp-direcory based on the date is not enough - added pid
This commit is contained in:
parent
4bb3504829
commit
21a6d88a8c
@ -39,7 +39,6 @@ builder_controller() {
|
|||||||
####################
|
####################
|
||||||
# Main
|
# Main
|
||||||
####################
|
####################
|
||||||
|
|
||||||
# get the 'real' directory this program stored in (resolve symbolic links)
|
# get the 'real' directory this program stored in (resolve symbolic links)
|
||||||
PRG=$(readlink -f $0)
|
PRG=$(readlink -f $0)
|
||||||
BASEDIR=`dirname "$PRG"`
|
BASEDIR=`dirname "$PRG"`
|
||||||
|
@ -90,7 +90,7 @@ builder_prepare() {
|
|||||||
log_debug "Distribution directory: $DIST_CACHE_DIR"
|
log_debug "Distribution directory: $DIST_CACHE_DIR"
|
||||||
|
|
||||||
# setup work directory
|
# setup work directory
|
||||||
OUTPUT_DIR=$TMP_DIR/opsi-builder.`date +%Y%m%d-%H%M%S`
|
OUTPUT_DIR="$TMP_DIR/opsi-builder.`date +%Y%m%d-%H%M%S`.$$"
|
||||||
mkdir -p ${OUTPUT_DIR}
|
mkdir -p ${OUTPUT_DIR}
|
||||||
builder_check_error "Cannot create temp directory ${OUTPUT_DIR}"
|
builder_check_error "Cannot create temp directory ${OUTPUT_DIR}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user