Jenkinsfile 614 B

12345678910111213141516171819202122232425
  1. pipeline {
  2. agent {
  3. dockerfile {
  4. filename 'Dockerfile'
  5. customWorkspace '/usr/bi-web'
  6. registryUrl 'https://registry.docker-cn.com'
  7. args '-p 80:80'
  8. }
  9. }
  10. stages {
  11. stage('Build'){
  12. steps {
  13. sh 'npm install'
  14. }
  15. }
  16. stage('Deliver'){
  17. steps {
  18. sh './jenkins/scripts/deliver.sh'
  19. input message: 'Finished using the web site? (Click "Proceed" to continue)'
  20. sh './jenkins/scripts/kill.sh'
  21. }
  22. }
  23. }
  24. }