詹金斯的工作触发了两次 [英] Jenkins job triggered twice

查看:108
本文介绍了詹金斯的工作触发了两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)我正在使用Jenkins API来触发作业,因此当我的监视工具sensu发送请求Jenkins API来触发jenkins作业时,构建开始. 2)我什至手动尝试通过点击buildnow而不是使用API​​调用来确保这不是API调用问题.

1) I am using Jenkins API to trigger a job, so when my monitoring tool sensu sends request Jenkins API to trigger jenkins JOb the build starts. 2) I have tried even manually by hitting buildnow instead of using API calls to make sure that it is not API call problem.

我的构建包含什么? 它在Master上运行,并在ansible插件的帮助下运行一本ansible剧本

What does my build contain? It runs on Master and runs a ansible play-book with help of ansible plugin

问题:构建成功完成后,它将自动触发另一个构建,而没有任何理由并再次运行该构建.这是一个简单的作业配置,可在master上运行,并在Jenkins提供的插件的帮助下运行ansible-playbook

Problem: Once the build is complete it is successful it automatically triggers another build with no reason again and runs the build again. And it is a simple job configuration which runs on master and runs ansible-playbook with help of Jenkins provided plugin

任何人都可以帮助我解决什么问题? 詹金斯版本:2.89.3 Ansible插件:0.8

Any one could help me in what might be the issue? Jenkins Version: 2.89.3 Ansible plugin: 0.8

我也可以看到jenkins的工作,由用户xyz开始 由用户xyz发起 由用户xyz发起 由用户xyz发起 由用户xyz发起 由用户xyz发起 由用户xyz开始进行单个构建

Also i could see for a jenkins job Started by user xyz Started by user xyz Started by user xyz Started by user xyz Started by user xyz Started by user xyz Started by user xyz for a single build

推荐答案

如果即使手动触发作业也被触发两次,则可能是Jenkins作业的配置方式.确保禁用了并发构建.

If you see a job getting triggered twice even when you manually trigger, it might be in the way the Jenkins job is configured. Make sure you have concurrent build disabled.

  • 打开您的Jenkins职位
  • 点击配置
  • 取消选中必要时执行并发构建
  • 点击保存
  • Open your Jenkins Job
  • Click Configure
  • Uncheck Execute concurrent builds if necessary
  • Click Save

这篇关于詹金斯的工作触发了两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆