简体   繁体   中英

Jenkins run post-build step after post-build action

I need jenkins to bounce a remote tomcat server after the war is deployed. We have the tomcat restart configured as a post-build step (shell command) and the war deploy configured as a post-build action.

Everything is working but we need jenkins to restart the tomcat server (run the shell script) after it deploys the war.

Is there a way to add a post-build step after a post-build action in Jenkins?

We do this by segregating our build and deployment jobs. Our "Builds" do just that, they build and archive artifacts. We have downstream jobs that pick up those artifacts for deployment/installation and will then restart any necessary services.

So in the deployment/installation job, the installation would be a build step, and the restart could be an additional build step, or a post-build action.

难道你不能只进行第二次构建后动作吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM