summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
d9c45a1)
Fix URL path indent, add a default ARG to the Dockerfile to
remove WARNING. Set the .asc files permissions to jenkins after
the sigul has signed the files.
Issue-ID: IT-23826
Change-Id: Idfa32e797320e7a580516a4b137202faf5bd37b0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
FROM centos:7
SHELL ["/bin/bash", "-c"]
FROM centos:7
SHELL ["/bin/bash", "-c"]
+ARG SIGN_DIR="${WORKSPACE}/m2repo"
+
RUN echo $'[fedora-infra-sigul] \n\
name=Fedora builder packages for sigul \n\
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/ \n\
RUN echo $'[fedora-infra-sigul] \n\
name=Fedora builder packages for sigul \n\
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/ \n\
--- /dev/null
+---
+fixes:
+ - |
+ Fix URL path indent, add a default ARG to the Dockerfile to remove WARNING.
+ Set the .asc files permissions to jenkins after the sigul has signed the
+ files.
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/"\
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/"\
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 \
# Setup the docker environment for jenkins user
docker build -f ${WORKSPACE}/Dockerfile \
--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
--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
else
lftools sign sigul -m "${SIGN_MODE}" "${SIGN_DIR}"
fi