From 8544a2ebe59ab5ce07330030eb91e25f183b8b3f Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Tue, 19 Jul 2022 11:29:48 -0400
Subject: [PATCH] Jenkinsfile: Also push release commits to stable branch.

This will make it easier to follow the history when checking out the
stable branch.

* Jenkinsfile: Push both tags and commits when publishing to the
stable channel.

Change-Id: Idb7b9485b80c9599cf0e5e5f81b8573b69dba652
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 066f6549..2fb1d474 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -180,7 +180,7 @@ git tag \$(cat .tarball-version) -am "Jami \$(cat .tarball-version)"
                     script {
                         if (params.CHANNEL == 'stable') {
                             // Only stables releases get tarballs and a tag.
-                            sh 'git push --tags'
+                            sh 'git push --follow-tags'
                             echo "Publishing release tarball..."
                             sh 'rsync --verbose jami*.tar.gz ' +
                                 "${REMOTE_HOST}:${REMOTE_BASE_DIR}" +
-- 
GitLab