添加Jenkinsfile
This commit is contained in:
parent
bdf91c1e36
commit
ecc4abc8d1
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -4,7 +4,7 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'make'
|
sh 'build.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
build.sh
4
build.sh
@ -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/
|
||||||
|
Loading…
Reference in New Issue
Block a user