'Powershell script file not running in Jenkins pipeline
I have created a powershell file that is running in a Jenkins pipeline job.
While running the Jenkins job, the tomcat server is not starting and I am not getting any error message in the job step, please help me how to trigger the job step.
Powershell script file - tomcatstart.ps1
$runFile = "c:\program files\apache-tomcat-9\bin\startup.bat"
Start-Process $runFile
Jenkins pipeline step
node('windows.app.node')
{
bat 'c:/windows/system32/windowspowershell/v1.0/powershell.exe d:/jenkins/tomcatstart.ps1'
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
