Jenkins build is failing on all nodes except one I am getting below error while building a docker image
Could not build image: The command '/bin/sh -c apk --no-cache update && apk --no-cache add python py-pip py-setuptools ca-certificates groff && pip --no-cache-dir install cfn-lint && pip --no-cache-dir install awscli==${AWS_CLI_VERSION}' returned a non-zero code: 4 -> [Help 1]
My docker file is
FROM openjdk:8-jre-alpine
# Versions: https://pypi.python.org/pypi/awscli#downloads
ENV AWS_CLI_VERSION 1.16.100
RUN apk --no-cache update && \
apk --no-cache add python py-pip py-setuptools ca-certificates groff && \
pip --no-cache-dir install cfn-lint && \
pip --no-cache-dir install awscli==${AWS_CLI_VERSION}
How do I solve this issue ?