这是我的当前的
Jenkinsfile
...pipeline {
agent any
stages {
stage('Build') {
steps {
script {
def commitHash = GIT_COMMIT.take(7)
echo 'Building Docker image for commit hash: ' + commitHash
def customImage = docker.build("myImage")
}
}
}
}
}
图片本身已成功创建。我现在想知道:
1. Jenkins每次构建时是否会下载我的package.json
中的所有依赖项?
2. Jenkins每次构建时是否会下载所有图层?