1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #!groovy
- pipeline {
- agent any
- parameters {
- string(name: 'TAG_NAME', defaultValue: '', description: '')
- }
- environment
-
- DOCKER_CREDENTIAL_ID
-
- GITHUB_CREDENTIAL_ID
-
- KUBECONFIG_CREDENTIAL_ID
-
- REGISTRY
-
- DOCKERHUB_NAMESPACE
-
- GITHUB_ACCOUNT
-
- APP_NAME
-
- APP_DEPLOY_BASE_DIR
- }
- stages
- stage('检出') {
- steps
- git
- branch: "devops"
- }
- }
- stage('构建') {
- steps
- sh
- }
- }
- stage('部署') {
- steps
- sh
- sh
- archiveArtifacts
- sh
- sh
- }
- }
- }
- }
|