我想在Google Kubernetes Engine上尝试使用Jenkins进行连续部署。当然,可以使用Jenkins API Rest。
我经历了https://cloud.google.com/solutions/jenkins-on-container-engine-tutorial
我让詹金斯跑步。问题是当我尝试使用Postman或curl来使用Jenkins API Rest时。系统提示我登录以继续使用Google Cloud Shell。
通过使用卷曲
curl -X GET https://8080-dot-3828316-dot-devshell.appspot.com/job/dev.ci/api/json \?pretty \ = true --user USER:令牌
<a href="https://accounts.google.com/o/oauth2/auth?client_id=618104708054-jqgabbtcm3fusmhf5hu82r7j8emh7aoa.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fdevshell.appspot.com%2F_cloudshellProxy%2Foauth2callback&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&state=eyJYU1JGVG9rZW4iOiJYUEljQkFETS1uVVFaMndLaF9uMjFvRUhENW86MTU4OTY3NDUzMDE3OSIsIkFwcFVSTCI6Imh0dHBzOi8vODA4MC1kb3QtMzgyODMxNi1kb3QtZGV2c2hlbGwuYXBwc3BvdC5jb20vam9iL2Rldi5jaS9hcGkvanNvbj9wcmV0dHk9dHJ1ZSJ9">Found</a>.
在邮递员中
在隐身窗口中
我的问题与以下事实有关:我没有正确公开服务。我使用的是Google为您提供的预览网址。因此,我必须遵循此处显示的架构:https : //cloud.google.com/solutions/jenkins-on-kubernetes-engine?fbclid=IwAR19Dl_kUSGzK1cfqyYA1s9cNt26CBnSgXf6zV104NGtIiXNtpTTKrfo3TI。我不得不将我的jenkins ui公开为NodePort并了解入口。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句