cloudbees,groovy,作业,文件夹:如果作业在cloudbees文件夹内,如何确定作业结果? [英] cloudbees, groovy, jobs, folders: How to determine the job result, if the job is within a cloudbees folder?

查看:166
本文介绍了cloudbees,groovy,作业,文件夹:如果作业在cloudbees文件夹内,如何确定作业结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我正在使用脚本来确定是否有一定数量的作业处于SUCCESS状态. 只要我不使用cloudbees文件夹插件,它就可以正常工作.我可以轻松获得项目列表并获得项目结果.但是,当我将作业移到cloudbee文件夹后,这些作业以及因此的作业结果将不再可用!

Problem: I'm using a script to determine if a certain amount of jobs are in SUCCESS state. It worked fine as long as I was not using cloudbees folder plugin. I could easily get the list of projects and get the project result. But after I moved the jobs to the cloudbee folder, the jobs and therefore the job results are no longer available!

Q :是否有人现在可以从位于Cloudbees文件夹中的工作中以常规的方式获得工作结果?

Q: Does anybody now how to get the job results with groovy from jobs which are located in a Cloudbees folder?

推荐答案

def job = Jenkins.instance.getItemByFullName('foldername/jobname');

这篇关于cloudbees,groovy,作业,文件夹:如果作业在cloudbees文件夹内,如何确定作业结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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