1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #!groovy
- pipeline {
- agent any
- tools { nodejs "nodejs" }
- parameters {
- string(name: 'TAG_NAME', defaultValue: '', description: '')
- }
- environment
- APP_NAME
- PROJECT_DIR='yudao-admin-ui'
- NGINX_WORKDIR
- }
- stages
- stage('检出') {
- steps
- git
- branch: "devops"
- }
- }
- stage('构建') {
- steps
- sh
- sh
- }
- }
- stage('部署') {
- steps
- sh
- sh
- sh
- sh
- archiveArtifacts
-
- }
- }
- }
- }
|