From fc628df3d2c69f79035e134815f79088dc6df03f Mon Sep 17 00:00:00 2001 From: Julin Date: Thu, 7 Dec 2023 15:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9A=20jenkinsfile=20--context=3D?= =?UTF-8?q?${BUILD=5FWORKSPACE/code/pep-stats-report}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/pep-stats-report/Dockerfile | 2 +- code/pep-stats-report/jenkinsfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/pep-stats-report/Dockerfile b/code/pep-stats-report/Dockerfile index fca294e..89ff1ff 100644 --- a/code/pep-stats-report/Dockerfile +++ b/code/pep-stats-report/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY . . RUN pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ - pip install -r ./code/pep-stats-report/requirements_linux.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ + pip install -r requirements_linux.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ cp SimHei.ttf /usr/local/lib/python3.8/site-packages/matplotlib/mpl-data/fonts/ttf && \ pyinstaller -F main.py --distpath=. diff --git a/code/pep-stats-report/jenkinsfile b/code/pep-stats-report/jenkinsfile index ca48a47..ce771e5 100644 --- a/code/pep-stats-report/jenkinsfile +++ b/code/pep-stats-report/jenkinsfile @@ -9,7 +9,7 @@ podTemplate { container('image-builder') { sh''' - /kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./code/pep-stats-report/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup + /kaniko/executor --context=${BUILD_WORKSPACE/code/pep-stats-report} --dockerfile=./Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup ''' }