Get full jenkins job name :
Jenkins.instance.getAllItems(AbstractItem.class).each {
println(it.fullName)
};
Kill: Jenkins job which is stuck
Jenkins.instance
.getItemByFullName(“Tenerity-Platform/BizOps/apg-chargeback”)
.getBranch(“develop”)
.getBuildByNumber(716)
.finish(hudson.model.Result.ABORTED, new java.io.IOException(“Aborting build”));