05api-prod.groovy 770 B

1234567891011121314151617181920212223242526272829303132
  1. //file:noinspection ALL
  2. pipeline {
  3. agent any
  4. environment {
  5. projectName = 'wms8-api'
  6. }
  7. stages {
  8. stage('#检查环境') {
  9. steps {
  10. sh """
  11. java -version
  12. gradle -v
  13. """
  14. }
  15. }
  16. stage('#编译项目') {
  17. steps {
  18. sh """
  19. wget -N http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/05shengke/05api-prod.sh
  20. chmod +x ./05api-prod.sh
  21. ./05api-prod.sh build
  22. """
  23. sh """
  24. JENKINS_NODE_COOKIE=dontKillMe nohup ./05api-prod.sh restart > /dev/null 2>&1 &
  25. """
  26. }
  27. }
  28. }
  29. }