From 75eb3c3f70293791b889df38120c1651e7922df6 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Mon, 23 Mar 2020 14:15:27 +0100 Subject: [PATCH] add Jenkinsfile --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6abe2c0 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +pipeline { + agent { + node { + label 'node' + } + } + + stages { + stage('Build client') { + steps { + sh 'CI=true npm_config_python=/usr/local/bin/python2.7 yarn --no-progress --non-interactive --skip-integrity-check --frozen-lockfile install' + sh 'yarn build' + } + } + + stage('Deploy to dev instance') { + steps { + sshagent(credentials: ['ury']) { + sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio' + } + } + } + } +}