[med-svn] [Git][med-team/community/helper-scripts][master] 2 commits: Be constructive if salsa ci settings fail
Steffen Möller (@moeller)
gitlab at salsa.debian.org
Tue Aug 3 17:14:27 BST 2021
Steffen Möller pushed to branch master at Debian Med / community / helper-scripts
Commits:
740e4787 by Steffen at 2021-08-03T18:14:00+02:00
Be constructive if salsa ci settings fail
- - - - -
3021bd73 by Steffen at 2021-08-03T18:14:14+02:00
Merge branch 'master' of salsa.debian.org:med-team/community/helper-scripts
- - - - -
1 changed file:
- inject-into-salsa-git
Changes:
=====================================
inject-into-salsa-git
=====================================
@@ -130,9 +130,14 @@ else
git remote add origin $remoteOrigin
fi
-# Change config file
-salsa update_repo --ci-config-path debian/salsa-ci.yml ${SALSA_GROUP}/${DEBPKGNAME}
+# Change config file - salsa tool does not find our token in ~/.ssh
+if ! SALSA_TOKEN=$SALSA_TOKEN salsa update_repo --ci-config-path debian/salsa-ci.yml ${SALSA_GROUP}/${DEBPKGNAME}; then
+ echo "W: Could not initiate CI for ${DEBPKGNAME}, please initiate"
+ echo " cd $(pwd) && salsa update_repo --ci-config-path debian/salsa-ci.yml ${SALSA_GROUP}/${DEBPKGNAME}"
+ echo " at a later time, e.g. after having been granted the permissions in ${SALSA_GROUP} reposiotry."
+fi
+echo "I: pushing to salsa"
git push origin master
git push --all --set-upstream
git push --tags
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/-/compare/65f6873a33bcff9a428016df6b13d68428148b77...3021bd731c556a9fb3ccaee161d0cbc9b60a5cdd
--
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/-/compare/65f6873a33bcff9a428016df6b13d68428148b77...3021bd731c556a9fb3ccaee161d0cbc9b60a5cdd
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210803/526a228f/attachment.htm>
More information about the debian-med-commit
mailing list