How to solve the problem of automatic shutdown of jenkins service after successful construction of jenkins

after jenkins successfully executes the npm install and npm run build construction, the jenkins service will be closed. How can I keep the jenkins service open after the project construction is completed?


The

test found that one of the possible reasons is insufficient memory resources.
Test results:
package a castrated version of demo of vue-element-ui template (with only a few menu functions), and the available memory 900mb of 2g centos7, with 1 core is about. It can reproduce the problem every time.
release memory, available memory 1400mb around, package again, problem solved.

after consulting the boss, the boss said that the resource consumption is relatively high when the front end is packaged, so it is recommended that the configuration of the jenkins server should be more than 2 cores and 4G.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54426-4529b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54426-4529b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?