Added retry step to aptly publishing during pkg build

Change-Id: Ie9521f39aab5f43af9513944c420f303ca91825e
diff --git a/build-debian-packages-influxdb-relay.groovy b/build-debian-packages-influxdb-relay.groovy
index 3a9bc03..14b1190 100644
--- a/build-debian-packages-influxdb-relay.groovy
+++ b/build-debian-packages-influxdb-relay.groovy
@@ -79,7 +79,9 @@
                         }
                         stage("publish") {
                             aptly.snapshotRepo(APTLY_URL, APTLY_REPO, timestamp)
-                            aptly.publish(APTLY_URL)
+                            retry(2){
+                              aptly.publish(APTLY_URL)
+                            }
                         }
                     }
                 }