diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2016-08-23 09:08:54 +0200 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2016-08-23 09:11:50 +0200 |
commit | 320e175c58f15abae5c2df6f912cba4c7d2b2869 (patch) | |
tree | 40515403b76a10d239e4e4b0be455f6cb2283ac4 /odp-publish-icon.yaml | |
parent | 6e952e7b903478597863a60f461324ec54f3b618 (diff) |
odp-publish-icon: inject properties-file
Change-Id: Id0078027d7e2a2ff2a9bd39ab7050c5b46bb69e5
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'odp-publish-icon.yaml')
-rw-r--r-- | odp-publish-icon.yaml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/odp-publish-icon.yaml b/odp-publish-icon.yaml index 2f0fa700e5..4c666ed9e5 100644 --- a/odp-publish-icon.yaml +++ b/odp-publish-icon.yaml @@ -49,13 +49,20 @@ trimmed_build_url=$(echo ${UPSTREAM_BUILD_URL} | sed 's|.*jenkins/job/||g') upstream_job_name=$(echo ${trimmed_build_url} | awk -F'/' '{print $1}') upstream_axis=$(echo ${trimmed_build_url} | awk -F'/' '{print $2}') - export upstream_buildnumber=$(echo ${trimmed_build_url} | awk -F'/' '{print $3}') + upstream_buildnumber=$(echo ${trimmed_build_url} | awk -F'/' '{print $3}') - export construct_publish_path=${upstream_job_name}/${UPSTREAM_GIT_BRANCH} + construct_publish_path=${upstream_job_name}/${UPSTREAM_GIT_BRANCH} for axis in $(echo $( echo ${upstream_axis}| sed 's|,| |g')); do construct_publish_path=${construct_publish_path}/$(echo ${axis}|awk -F'=' '{print $2}') done + cat << EOF > remote_directory_parameters + upstream_buildnumber=${upstream_buildnumber} + construct_publish_path=${construct_publish_path} + EOF + + - inject: + properties-file: remote_directory_parameters - ssh: site: 'docs.opendataplane.org' target: 'incoming/${construct_publish_path}/${upstream_buildnumber}' |