diff --git a/Jenkinsfile b/Jenkinsfile index 1f9e673..eead1fb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,18 @@ pipeline { sh 'ls -al' } } + + stage('🛠️构建') { + steps { + withDockerContainer('node:18-alpine') { + sh 'node -V' + sh 'npm config set registry https://registry.npmmirror.com' + sh 'npm install' + sh 'npm build' + sh 'la -al' + } + } + } } post {