deploy: sync dist to 1Panel site after build
This commit is contained in:
1 parent
0bc4ed91c5
commit
38d0d8508d
1 file changed
+6
Vendored
+6
@@ -41,6 +41,12 @@ pipeline {
|
|||||||
archiveArtifacts artifacts: 'dist/**', fingerprint: true, allowEmptyArchive: false
|
archiveArtifacts artifacts: 'dist/**', fingerprint: true, allowEmptyArchive: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
sh 'sudo /usr/bin/rsync -a --delete dist/ /opt/1panel/www/sites/workstation.xiaozhou233.cn/index/'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
|
|||||||
Reference in new issue
Block a user