#!/bin/bash

# Program:
#     deploy jenkins
# Version:
#     1.0.0
# History:
#     Created on 2020/11/10
#     Last modified on 2020/12/19

JENKINS_URL="http://admin:11801a68ed960150796bfa39c0abfc73c7@192.168.2.105:8080/job"
JOB_NAME="前端部署（116测试环境）"
#JOB_NAME="前端部署（118生产环境）"

# 执行Jenkins远程构建
curl -X POST $JENKINS_URL/$JOB_NAME/build?token=123456

# 查看最近一次构建日志（非实时）
#curl $JENKINS_URL/$JOB_NAME/lastBuild/consoleText
