This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!groovy | |
pipeline { | |
agent any | |
parameters { | |
string(name: 'CAUSE', defaultValue: 'anonymous', description: 'Build Cause') | |
} | |
stages { | |
stage('Test Previous Build Status') { | |
steps { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautoit | |
s = autoit.win_get_title("[ACTIVE]") | |
autoit.control_click(s, "Button2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
#make sure every chromedriver.exe is closed | |
with os.popen('tasklist') as task_list_file: | |
task_list_str = task_list_file.read() | |
flag = task_list_str.find("chromedriver.exe") | |
if flag != -1: | |
os.system("taskkill /F /IM chromedriver.exe") |