import jenkins from feed_ingestion.flows.helpers import get_secret from feed_ingestion.flows.spotify_charts import config server = jenkins.Jenkins( config.jenkins_url, username=config.jenkins_username, password=get_secret( config.jenkins_secrets_path, 'JENKINS_API_TOKEN') ) if server.get_job_info(config.jenkins_job)['inQueue']: print(server.get_job_info(config.jenkins_job)['inQueue']) #server.build_job(config.jenkins_job, config.jenkins_job_params) print(server.get_job_info(config.jenkins_job))