连接 Jenkins¶
Jenkins 连接类型提供与 Jenkins 服务器的连接。
默认连接 ID¶
所有与 Jenkins 相关的 hook 和 operator 默认使用 jenkins_default
。
配置连接¶
- 登录
指定您想连接的 Jenkins 服务的登录名。
- 密码
指定您想连接的 Jenkins 服务的密码。
- 主机
指定您的 Jenkins 服务器主机。此处应
不
包含地址的方案(http://
或https://
)。示例:
jenkins.example.com
- 端口
指定端口号。
- 使用 Https
指定是否使用
https
。默认为http
。
通过环境变量指定连接时,应使用 URI 语法。
请注意,URI 的所有组成部分都应进行 URL 编码。
例如
export AIRFLOW_CONN_JENKINS_DEFAULT='http://username:password@server.com:443'