diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-11-30 17:06:32 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-11-30 17:12:14 +0100 |
commit | 936b0df4f24c5904a0e7dd05129ecbd45e5c84fb (patch) | |
tree | f1ed303a84f25273fdcf148763dd69592b21adf7 /lt-qcom-linux/publishers.sh | |
parent | 0b78e1a47a5aefdcc7594d06c6b3175ee4f07f5b (diff) |
lt-qcom-*/publishers: sanitize build log file name
in matrix job JOB_NAME is a complex string not very well suited to create files,
e.g. it can be: lt-qcom-linux-aosp/ARCH=arm64,label=docker-stretch-amd64. So
let's sanitize the filename a bit before using it.
Change-Id: I37356a877303c4feb0c8162811b99605a09307cd
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-linux/publishers.sh')
-rw-r--r-- | lt-qcom-linux/publishers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lt-qcom-linux/publishers.sh b/lt-qcom-linux/publishers.sh index 7dfacbc731..24256763d1 100644 --- a/lt-qcom-linux/publishers.sh +++ b/lt-qcom-linux/publishers.sh @@ -14,7 +14,7 @@ done # Create MD5SUMS file (cd out && md5sum * > MD5SUMS.txt) -wget -q ${BUILD_URL}consoleText -O out/build-log-${JOB_NAME}-${BUILD_NUMBER}.txt +wget -q ${BUILD_URL}consoleText -O out/build-log-$(echo ${JOB_NAME}|sed -e 's/[^A-Za-z0-9._-]/_/g')-${BUILD_NUMBER}.txt # Publish to snapshots test -d ${HOME}/bin || mkdir ${HOME}/bin |