summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2020-02-20 02:44:50 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2020-02-20 02:50:54 +0300
commit259402e1a1b616932d016745ca2e36d31e4a90b1 (patch)
treed28632c9b84f2f9a05c0648e7ffa9172a0a878b2 /Jenkinsfile
downloadfiles-maintenance-master.tar.gz
Initial commit.HEADmaster
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..6494c19
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,23 @@
+pipeline {
+ agent { label "master" }
+ stages {
+ stage("Get source IP address") {
+ steps {
+ script {
+ source = (sh (script: """ip --json address | jq -r '.[] | select(."ifname"=="tapvpn").addr_info[] | select(."family"=="inet").local'""", returnStdout: true)).trim()
+ }
+ }
+ }
+ stage("Rsync Firefox profile") {
+ agent { label "workstation" }
+ steps {
+ sh (script: "rsync -av --exclude=storage rsync://$source/mozilla/firefox/j56dvo43.default-1520714705340 /home/oleg/.mozilla/firefox")
+ }
+ }
+ }
+ post {
+ always {
+ sendNotifications currentBuild.result
+ }
+ }
+}