詹金斯 - 如何强制标记构建成功

时间:2016-06-06 05:57:10

标签: jenkins jenkins-plugins

我有这个错误:

var self = module.exports = {
    environment: undefined,

    beforeEach: function (browser, done) {
        browser.execute(function(data) {
            return window.navigator.userAgent;
        }, [], function(result) {
            console.log('it comes here ', result);
            self.environment = result.value;
        });

        console.log("Run against: " + self.environment);
        done();
    },

};

我的构建之后。此错误标记为java.io.IOException: Remote call on build4 failed at hudson.remoting.Channel.call(Channel.java:789) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:953) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.jna.GNUCLibrary at hudson.plugins.signal_killer.SignalKiller.sendSignal(SignalKiller.java:45) at hudson.plugins.signal_killer.SignalKiller.kill(SignalKiller.java:29) at hudson.util.ProcessTree$OSProcess.killByKiller(ProcessTree.java:216) at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:427) at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:487) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:965) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:956) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:62) at java.lang.Thread.run(Unknown Source) at ......remote call to build4(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) at hudson.remoting.UserResponse.retrieve(UserRequest.java:252) at hudson.remoting.Channel.call(Channel.java:781) ... 6 more

但我需要强制将其标记为FAILED,因为我获得了build的成功结果 - * .exe链接。

我尝试使用Jenkins Text Finder插件:

Settings of JTF

它正在寻找我的正则表达式在控制台输出和标记构建成功但它没有按预期工作 - 它找到正则表达式,但没有标记构建成功。

有没有其他方法可以解决这个问题?

1 个答案:

答案 0 :(得分:0)

这是不可能的 - 构建结果只能标记为worse而不是现有结果,因此Text Finder插件只能将您的构建设置为UNSTABLE或FAILED。

您似乎需要等待JENKINS-20481的分辨率。您应该尽可能多地为该票证添加详细信息。