Commit 3d982e59f6ce9d7f33ae8c85f84ba0b2e11c7d95
1 parent
d14206d4
add gitignore
Showing
2 changed files
with
13 additions
and
0 deletions
.gitignore
0 → 100644
1 | +.idea/ |
Jenkinsfile
0 → 100644
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 | ||
0 | \ No newline at end of file | 13 | \ No newline at end of file |