pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
858 stars 485 forks source link

Disable() doesn't work #821

Open eresque opened 2 years ago

eresque commented 2 years ago
ISSUE TYPE
Jenkinsapi 0.3.11
Jenkins 2.319.1
SUMMARY

Disable() function doesn't work but I do everything exectly as written in documentation. Help me to figure out the problem, please.

EXPECTED RESULTS

Expected that disable() will abort running job build

ACTUAL RESULTS

Nothing happend

USEFUL INFORMATION

Every other function runs correctly, (I can get version and list of jobs etc.) but enable/disable funcs seems to do nothing.

if __name__ == "__main__":

    usr, psw = sys.argv[1:]
    server = Jenkins("https://jenkins....", usr, psw, ssl_verify=False)
    job_name = "DZDSCS/ls/model"
    job_instance = server.get_job(job_name)

    job_instance.disable()