01yvan-ext.groovy 642 B

123456789101112131415161718192021222324252627282930
  1. //file:noinspection ALL
  2. pipeline {
  3. agent any
  4. environment {
  5. projectName = 'yvan-ext'
  6. }
  7. stages {
  8. stage('#检查环境') {
  9. steps {
  10. sh """
  11. node -v
  12. npm -v
  13. yarn -v
  14. """
  15. }
  16. }
  17. stage('#编译项目') {
  18. steps {
  19. sh """
  20. wget -N http://git.yvanui.com/projects/jztd-deploy/raw/master/00base/01yvan-ext.sh
  21. chmod +x 01yvan-ext.sh
  22. ./01yvan-ext.sh deploy
  23. """
  24. }
  25. }
  26. }
  27. }