Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34586

How don't exit the sub progress started by the shell script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • _unsorted
    • None
    • Jenkins Version 1.589, Version1.651, Version2.1

      The repository url is:

      https://github.com/hujb2000/easynode-ipc.git

      Shell Script:

      OLD_BUILD_ID=$BUILD_ID
      echo $OLD_BUILD_ID
      BUILD_ID=dontKillMe

      /home/hjb/scripts/killport.sh 8899
      npm install
      cd plugins
      webpack --config webpack.prod.config.js
      cd ../bin
      CONFIG_URL='***' ENV=TEST nohup babel-node --harmony main.js --debug-output=true --http.server.port=8899 --src-dirs=src --main-class=netease.icp.backend.Main --config-files=config/service.conf --easynode.app.id=icp &
      echo $?

      BUILD_ID=$OLD_BUILD_ID
      echo $BUILD_ID

      At jenkins Version1.598, The job will not terminate the sub progress , but at jenkis version 1.651 and version 2.1 the job will terminate the sub progress,
      Can you help me how to solve it ?

            oleg_nenashev Oleg Nenashev
            hujb2000 hu jiabao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: