| 12345678910111213141516171819202122232425262728293031 |
- pipeline {
- agent {
- dockerfile {
- filename 'Dockerfile'
- registryUrl 'https://registry.docker-cn.com'
- args '-p 80:80 --security-opt apparmor=unconfined'
- }
- }
- stages {
- stage('SonarQube Analysis') {
- steps {
- sh 'sonar-scanner'
- }
- }
- stage('Build'){
- steps {
- sh 'npm install'
- }
- }
- stage('Deliver'){
- steps {
- sh 'npm run build'
- sh 'echo $! > .pidfile'
- sh 'service nginx start'
- input message: 'Finished using the web site? (Click "Proceed" to continue)'
- }
- }
-
- }
- }
|