| When I run the pipeline stage to execute 'electron-packager .' command, it hangs forever. My stage:
stage("Electron package"){
steps{
script{
echo "Electron package"
timeout(time: 10, unit: 'MINUTES') { // timeout
//sh '''
// cat <<EOF > packager.bat
// @echo off
// electron-packager .
// '''
//bat returnStdout: true, returnStatus: false, script: 'electron-packager . &'
//powershell "npm run package-win"
bat "electron-packager ."
//bat returnStatus: true, script: 'electron-packager ./'
//bat 'cmd.exe /c packager.bat'
//bat "electron-packager ./release-builds electron-app --platform=win32 --arch=x64 --overwrite --version-string.ProductName=\"MY Electron App\""
}
}
}
As you can see the commented lines I tried several ways but it always just hangs.
- Powershell
- Execute bat file
No output or result about in the logs to see what happens and what is it waiting for. For me, it looks like a permission issue. So, I disabled UAC and the Jenkins agent is running as a Service. In earlier stages I also used 'bat' steps and it's all working fine. |