btnTS.addEventListener('click', function () {
// Listen for async message from renderer process
webview.send('ping', 'whoooooooh!')
console.log("sended");
});
ipcRenderer.on('ping', (event, message) => {
console.log(message);});
def checkjob = build job: 'job name', parameters: [ any params here]
checklog = Jenkins.getInstance().getItemByFullName('job name').getBuildByNumber(checkjob.getNumber()).log
println checklog