jenkinsapi操作Jenkins,提示:No valid crumb was included in the request

# coding:utf-8

from jenkinsapi.jenkins import Jenkins


# 实例化Jenkins对象,传入地址+账号+密码
j = Jenkins("http://127.0.0.1:8080", username='chen', password='chen')
j.build_job(
'pipeline_test')

提示:No valid crumb was included in the request

去勾选全局安全配置的【防止跨站点请求伪造(Prevent Cross Site Request Forgery exploits)】

原文地址:https://www.cnblogs.com/gcgc/p/10185964.html