X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fsigul-sign-dir.sh;h=f708d37d2bfa10b77b91df82f81b7c030a53c973;hb=fd0481da698114d2032192796e61c198669cedb3;hp=92380cc0a93b92e616b352a98167059074ec5261;hpb=d9c45a1ea0568d277e352dba1b74b46914880e0c;p=releng%2Fglobal-jjb.git diff --git a/shell/sigul-sign-dir.sh b/shell/sigul-sign-dir.sh index 92380cc0..f708d37d 100644 --- a/shell/sigul-sign-dir.sh +++ b/shell/sigul-sign-dir.sh @@ -18,9 +18,9 @@ OS_RELEASE=$(facter lsbdistrelease | tr '[:upper:]' '[:lower:]') if [[ "$OS_RELEASE" == "8" && "$OS" == 'centos' ]]; then # Get Dockerfile and the enterpoint to build the docker image. wget -O "${WORKSPACE}/sigul-sign.sh" "https://raw.githubusercontent.com/"\ - "lfit/releng-global-jjb/master/shell/sigul-sign.sh" +"lfit/releng-global-jjb/master/shell/sigul-sign.sh" wget -O "${WORKSPACE}/Dockerfile" "https://raw.githubusercontent.com/"\ - "lfit/releng-global-jjb/master/docker/Dockerfile" +"lfit/releng-global-jjb/master/docker/Dockerfile" # Setup the docker environment for jenkins user docker build -f ${WORKSPACE}/Dockerfile \ @@ -45,6 +45,9 @@ if [[ "$OS_RELEASE" == "8" && "$OS" == 'centos' ]]; then --mount type=bind,source="/w/workspace",target="/w/workspace" \ --mount type=bind,source="/home/jenkins",target="/home/jenkins" \ -u root:root -w $(pwd) sigul-sign + + # change the .asc files owner permissions back to jenkins + sudo chown -R jenkins:jenkins "${SIGN_DIR}" else lftools sign sigul -m "${SIGN_MODE}" "${SIGN_DIR}" fi