1、配置node
一、首先在slave节点上写一脚本api
[root@node1 script]# cat /application/script/test.sh #!/bin/bash echo "hehe" echo "$1"
二、在jenkins中配置bash
三、jenkins apiapp
http://192.168.10.14:8099/api/spa