azure - 如何使用 Jenkins 部署到安全(https)tomcat 服务器?

标签 azure tomcat jenkins continuous-integration tomcat8

我想为我的一台生产服务器设置 CI。该服务器受 HTTPS 保护。然而,当 Jenkins 尝试部署时,它给出了以下异常:

org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403)

Tomcat 服务器 (8.x) 托管在基于 Cent-OS 的计算机上的 Azure 云上。 我在 tomcat-users.xml 中为用户授予了以下角色:

roles="manager-jmx,manager-gui,manager-script,standard"

是否需要任何其他角色才能允许基于文本的访问?

最佳答案

基于文档 [ https://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html]你看起来是正确的。

但根据错误消息 - 似乎正在调用文本接口(interface)。这意味着您可能需要添加manager-status作为角色。

关于azure - 如何使用 Jenkins 部署到安全(https)tomcat 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36761454/

相关文章:

java - 在 Tomcat 上部署期间未加载 RestEasy-Links : javax. el-3.0.0.jar

tomcat - 如何使用tomcat接收和响应HTTP PUT?

java - Tomcat,Spring MVC,在不使用 htaccess 文件的情况下将用户重定向到 'www'

Jenkins 管道 - 删除 @tmp 文件夹

python - 重定向 URL 在 azure 上不匹配

azure - Microsoft BizTalk Server 与 Azure AppFabric 服务总线...?

tomcat - 如何使用内置 Java App Layer 在 AWS OpsWorks 上部署 Jenkins?

java - 执行 war 文件命令时 Jenkins 中的问题

visual-studio-2010 - Azure 项目模板在 Visual Studio 中不可见

Azure CDN 不尊重 Blob 的 CORS