[med-svn] [Git][med-team/community/helper-scripts][master] Add script to change CI config team-wide

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Thu May 13 08:48:03 BST 2021



Nilesh Patra pushed to branch master at Debian Med / community / helper-scripts


Commits:
4d3df0c3 by Nilesh Patra at 2021-05-13T13:15:26+05:30
Add script to change CI config team-wide

- - - - -


1 changed file:

- + fix-salsa-conf.sh


Changes:

=====================================
fix-salsa-conf.sh
=====================================
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# List all med-team repos and save them in a file
+salsa --group med-team list_repos > all_repo_details.txt
+
+#List out all names
+grep 'Name:[[:space:]]' all_repo_details.txt > all_repo_names.txt
+
+# Prefix with med-team
+sed -i 's|Name:[[:space:]]|med-team\/|g' all_repo_names.txt
+
+# Change ci config of every repo
+for f in `cat all_repo_names.txt`
+do
+	salsa update_repo --ci-config-path debian/salsa-ci.yml $f
+	echo "Changed ci config for $f"
+done



View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/-/commit/4d3df0c3ef025a10088f878cc2f9430341177077

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/-/commit/4d3df0c3ef025a10088f878cc2f9430341177077
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/20210513/4da3c1f2/attachment-0001.htm>


More information about the debian-med-commit mailing list