aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 13b4e1d..cbd44dd 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -60,6 +60,18 @@ pipeline {
}
}
}
+
+ stage('cdn deploy') {
+ when {
+ expression { env.BRANCH_NAME == 'master' }
+ }
+ steps {
+ dir("panel-ui") {
+ sh "/usr/bin/rsync -v dist/grl-panel.js grl-cdn:/root/gr-cdn/"
+ }
+ }
+ }
+
}
}