-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynchGithub
57 lines (49 loc) · 2.25 KB
/
synchGithub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
def depots = [
'uqam/auth_saml2' : 'catalyst/moodle-auth_saml2',
'uqam/blocks_completion_progress' : 'deraadt/moodle-block_completion_progress',
'uqam/blocks_panopto' : 'Panopto/Moodle-2.0-plugin-for-Panopto',
'uqam/course_format_topcoll': 'gjb2048/moodle-format_topcoll',
'uqam/moodle' : 'moodle/moodle',
]
job('ENA-SynchGH') {
triggers {
cron('5 2 * * 4')
}
wrappers {
credentialsBinding {
usernamePassword('BB_USER', 'BB_PASS', 'ENA-mdl')
}
}
steps {
shell('''
git clone --bare https://\$BB_USER:\[email protected]/uqam/auth_saml2.git;
cd auth_saml2.git;
git remote add --mirror=fetch github https://github.com/catalyst/moodle-auth_saml2.git;
git fetch github; git fetch github --tags; git push origin --all; git push origin --tags
''')
shell('''
git clone --bare https://\$BB_USER:\[email protected]/uqam/blocks_completion_progress.git;
cd blocks_completion_progress.git;
git remote add --mirror=fetch github https://github.com/deraadt/moodle-block_completion_progress.git;
git fetch github; git fetch github --tags; git push origin --all; git push origin --tags
''')
shell('''
git clone --bare https://\$BB_USER:\[email protected]/uqam/blocks_panopto.git;
cd blocks_panopto.git;
git remote add --mirror=fetch github https://github.com/Panopto/Moodle-2.0-plugin-for-Panopto;
git fetch github; git fetch github --tags; git push origin --all; git push origin --tags
''')
shell('''
git clone --bare https://\$BB_USER:\[email protected]/uqam/course_format_topcoll.git;
cd course_format_topcoll.git;
git remote add --mirror=fetch github https://github.com/gjb2048/moodle-format_topcoll.git;
git fetch github; git fetch github --tags; git push origin --all; git push origin --tags
''')
shell('''
git clone --bare https://\$BB_USER:\[email protected]/uqam/moodle.git;
cd moodle.git;
git remote add --mirror=fetch github https://github.com/moodle/moodle.git;
git fetch github; git fetch github --tags; git push origin --all; git push origin --tags
''')
}
}