We can use JenkinsAPI with python to automate whole jenkins process . Installation of Jenkins API : pip3 install python-jenkins ( I am using python3 for my code) After that just import the Jenkins api in file and make connection to jenkins server. import jenkins #Make connection with jenkins server = jenkins.Jenkins('http://jenkins-url:8080/', username='username', password='xxxxxxxxxxxxxxx')