返回顶部

Jenkins+Ansible+Gitlab自动化部署三剑客(五)--Jenkins 参数集成

Jenkins 参数集成

1.新建项目

 

 2.添加选项

 

 

 

 

 

 

 

#!/bin/sh

echo "Current deploy environment is $deploy_env"
echo "The build is $version"
echo "The paasword is $pass"

if $bool
then
    echo "Request is approved"
else
    echo "Request is rejected"
fi

 

 3.Build with Parameters

 

 4.查看构建日志

 

posted @ 2020-02-21 13:02  Will_D_Zhang  阅读(173)  评论(0编辑  收藏  举报