tomcat访问manager/html出现403
2020-08-15影响到jenkins部署项目
注意看第一句话需要修改context.xml,把value标签注释,重启即可
配置流水线,使用pipeline语法生成器,选择checkout git项目
当git仓库大于1G时,遇到拉取失败的问题,这时可以选择下方的additional behaviours,高级的克隆行为
使用浅克隆shallow clone,深度选择1
最后生成流水线脚本
checkout([$class: 'GitSCM', branches: [[name: '*/project/dev_patch']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption',depth: 1, noTags: false, reference: '', shallow: true, timeout: 60]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'ecb0a39b-b32b-42a4-99b3-f6ea20da853d', url: 'https://git.**.net.cn/***.git']]]) }
参考:https://stackoverflow.com/questions/54645613/jenkins-pipeline-scm-checkout-shallow-copy-fails