检查运行状态以显示Jenkins插件操作

时间:2018-09-03 13:05:41

标签: jenkins jenkins-plugins

仅在构建完成后,如何在Jenkins中显示侧面菜单操作菜单?

module.exports = function (context, myTimer) {
    var timeStamp = new Date().toISOString();

    if(myTimer.isPastDue)
    {
        context.log('Node.js is running late!');
    }
    context.log('Node.js timer trigger function ran!', timeStamp);  
    context.bindings.notification = {
        location: "Redmond",
        message: "Hello from Node!"
    };
    context.done();
};

0 个答案:

没有答案