Skip to content
Snippets Groups Projects
Unverified Commit 003b6be6 authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

packaging: Simplify 'Publish release artifacts stage' logic.

* extras/packaging/gnu-linux/Jenkinsfile
(Publish release artifacts'): Simplify logic.

Change-Id: I4cec0b8009256501d627453df26bd17024e55f45
parent 9355c1a2
No related branches found
No related tags found
No related merge requests found
......@@ -149,18 +149,16 @@ make -f ${PACKAGING_DIR}/Makefile portable-release-tarball .tarball-version
" ${params.CHANNEL}",
returnStdout: true
).trim()
sh """
git tag -am \"Jami new ${params.CHANNEL} version\" ${wantedTag}
"""
sh "git tag -am \"Jami new ${params.CHANNEL} version\"" +
" ${wantedTag}"
sh "git push origin --tags"
if (params.CHANNEL == 'stable') {
// Only stables releases get tarballs and a tag.
sh "git push origin --tags"
// Only stable releases get a source
// tarball.
echo "Publishing release tarball..."
sh 'rsync --verbose jami*.tar.gz ' +
"${REMOTE_HOST}:${REMOTE_BASE_DIR}" +
"/release/tarballs/"
} else {
sh "git push origin --tags"
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment