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"
fi3.Build with Parameters

4.查看构建日志
