Browse Source

构建错误:

+ /kaniko/executor '--context=/builder/workspace/pep-stats-report' '--dockerfile=./Dockerfile' '--destination=registry.ngaiot.com/pep/pep-stats-report:14' '--cache=false' --cleanup
Error: error resolving dockerfile path: please provide a valid path to a Dockerfile within the build context with --dockerfile
main
Julin 11 months ago
parent
commit
0e965af467
  1. 2
      code/pep-stats-report/jenkinsfile

2
code/pep-stats-report/jenkinsfile

@ -9,7 +9,7 @@ podTemplate {
container('image-builder') { container('image-builder') {
sh''' sh'''
/kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup /kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./code/pep-stats-report/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup
''' '''
} }

Loading…
Cancel
Save