简体   繁体   English

Jenkins Azure 中的服务连接 devops 给出错误

[英]Jenkins Service connection in Azure devops giving error

I have a Jenkins instance hosted in AWS and I have created a Job to trigger test execution in aws VM.我有一个托管在 AWS 中的 Jenkins 实例,并且我创建了一个作业来触发 aws VM 中的测试执行。 Now I'm creating a service connection in Azure devops to trigger this job whenever there is a build triggered in azure release pipeline.现在我在 Azure devops 中创建一个服务连接,以在 azure 发布管道中触发构建时触发此作业。

But I'm getting below error while creating service connection.但是我在创建服务连接时遇到了错误。 This jenkins URL is publicly accessible.此 jenkins URL 可公开访问。

在此处输入图像描述

You should:你应该:

1.Make sure the Url is correct with http/https 1.使用http/https确保Url正确

2.Enable the Accept untrusted SSL certificates (optional) 2.启用Accept untrusted SSL certificates (optional)

3.Double-check the UserName and Password . 3.仔细检查UserNamePassword If the issue persists, use Token instead of password (Jenkins Configure > API Token > Add new Token)如果问题仍然存在,请使用令牌而不是密码(Jenkins 配置 > API 令牌 > 添加新令牌)

4.If both Password and Token can't work, you can enter the Service Connection name and then Save without verification . 4.如果Password和Token都不起作用,可以输入Service Connection name,然后Save without verify

在此处输入图像描述

It seems there's something wrong with verify step in some cases, so you can ignore the verification and use the service connection directly in your task.在某些情况下,验证步骤似乎有问题,因此您可以忽略验证并直接在任务中使用服务连接。 Check these two tickets.检查这两张票。 ( Issue1 , Issue2 ) ( 问题1 ,问题 2 )

Let me know if it helps.让我知道它是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM