update Jenkinsfile
This commit is contained in:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -15,14 +15,6 @@ pipeline {
|
|||||||
# Install Go
|
# Install Go
|
||||||
curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz
|
curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz
|
||||||
tar -xzf go.tar.gz
|
tar -xzf go.tar.gz
|
||||||
|
|
||||||
# Install rsync via static binary from pkgs.tailscale.com
|
|
||||||
curl -sL https://pkgs.tailscale.com/static/rsync/rsync-3.2.7-linux-amd64 \
|
|
||||||
-o rsync || \
|
|
||||||
curl -sL https://github.com/JBBgameich/rsync-static/releases/download/continuous/rsync-x86_64 \
|
|
||||||
-o rsync
|
|
||||||
chmod +x rsync
|
|
||||||
file ./rsync
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,13 +24,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps:
|
||||||
sh '''
|
sh '''
|
||||||
./rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" \
|
scp -o StrictHostKeyChecking=no -r public/* root@172.17.0.1:${DEPLOY_PATH}/
|
||||||
public/ root@172.17.0.1:${DEPLOY_PATH}/
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|||||||
Reference in New Issue
Block a user