summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }
+ }
+}