Reputation: 83
Due to a vulnerability scan from our red team, we moved Tomcat manager out of the default directory and now Jenkins cannot deploy.
We moved the files from ROOT to \webapps\testroot We renamed the manager dir in webapps to testroot#manager and added a testroot#manager.xml We renamed the host-manager dir in webapps to testroot#host-manager and added a testroot#host-manager.xml
Everything is working as expected when we visit the various urls, BUT now we get errors when deploying apps from Jenkins using the tomcat9 adapter.
This is the part of the pipeline script that deploys:
steps {
deploy adapters: [tomcat9(url: 'https://myjavaserver.mydomain.com/' ,
credentialsId: 'tomcat-creds')],
war: 'target/*.war',
contextPath: 'myJavaApp'
}
Is there something I need to change in the script so it can deploy to the right location?
Upvotes: 0
Views: 22