添加Jenkinsfile

This commit is contained in:
LingZhaoHui 2020-09-12 10:12:54 +08:00
parent bdf91c1e36
commit ecc4abc8d1
2 changed files with 5 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -4,7 +4,7 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'make' sh 'build.sh'
} }
} }
} }

View File

@ -7,6 +7,10 @@
#make clean #make clean
make && make PREFIX=/usr/local/redis install make && make PREFIX=/usr/local/redis install
if ! test -z $1;then
return 0;
fi
if [ ! -d "/usr/local/redis/config/" ] if [ ! -d "/usr/local/redis/config/" ]
then then
mkdir -p /usr/local/redis/config/ mkdir -p /usr/local/redis/config/