project -build
1,对于Restart
一定要执行两种,一个是取消后的restart,一个是全部执行完毕的restart(记得选择全部的steps)
2 Special register
测试special register
1,create a project
step0:
echo "warning..."
echo ${BF_TAG}>reg.txt
.push += reg.txt
echo "fail"
echo "clear fail..."
Filter:
fail Set Fail ag1
clear fail Clear Fail ag1
warn Warning ag1
(must be in order)
设置pass fail通知
2,Create a template
Step warning message: pjt1, step0
Job ${TAG} of project ${PROJECTNAME} ${RUNACTION} on ${SERVER} at ${START} successfully completed.
Registers are ${!},${ALPHA},${=},${@}
3, agent 命令
cmd exec
exec XXXX(xxx代表你要执行的命令如dir, echo “hello world!”等等)
username name
password mima
go
如果第一次已经通过认证了,以后就不需要用户名和密码了
例如
cmd mkdir
root c:/
dir yqnewdir
go
环境变量的设置"S:X:Y/nA:C:D/nP:E:F/nC:Z:/n".
env S:var1:value001