Jenkins的git plugin不認Git Server self-sign憑證線索
目前使用上來說可以理解是,在Jenkins shell(或pipeline)腳本內
若執行git config設置,對於git plugin來說完全無效
目前看到實際他的.gitocnfig其實位在:
簡單可以加上:
理論上上面等價於:
#記得要root跑,因為git plugin執行看起來應該是吃root那邊的.gitconfig:
sudo git config --global http.sslVerify false
所以有可能Dockfile內是要切root再去執行上述指令才能成功設置gitconfig
當然也有加入憑證檔的:
keytool在:
給Java吃的憑證放置檔放置目錄在:
#整理來說可能要加入憑證檔的指令如下:
/opt/java/openjdk/bin/keytool -import -file /opt/custom/certs/mycert.pem -alias mycert -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass changeit -noprompt