Commit ffc1af5c9f54604967606330c02aa4d5b5adaac6
1 parent
3d982e59
delete Jenkinsfile
Showing
1 changed file
with
0 additions
and
12 deletions
Jenkinsfile deleted
100644 → 0
1 | -#!/bin/sh | ||
2 | -# | ||
3 | -DATE=`date +%m%d%H%M ` | ||
4 | -DIR="/var/lib/jenkins/jobs/nginx/workspace" | ||
5 | - | ||
6 | -sudo /bin/docker build -t nginx_$DATE $DIR | tee $DIR/Docker_build_result.log | ||
7 | - | ||
8 | -RESULT=$(cat $DIR/Docker_build_result.log | tail -n 1) | ||
9 | - | ||
10 | -if [["$RESULT" != *Successfully*]];then | ||
11 | - exit -1 | ||
12 | -fi | ||
13 | \ No newline at end of file | 0 | \ No newline at end of file |