Skip to content

Commit cad4280

Browse files
committed
[multi-user CI] dotty job templates, scabot conf
1 parent 3c760e9 commit cad4280

File tree

7 files changed

+100
-1
lines changed

7 files changed

+100
-1
lines changed

attributes/worker.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ssh public keys for users with access to workers
22
workerAuthorizedKeys =
3-
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAva5WQeMGZxgQ1adlJQoYZCJZYTkVYSSKWu9O3EDJD+2jncUFfUdd4AsYbpYs/N2FyeoT2Gja7c03dFI6gQP3d+ZNaiO3CBYC6LvbgmCaQrffymiYw8jgD0NQqRan0nwXblmQlkxktgU0oSI/NmkpsNsMx67Pgrd+UsCchuFl7LR0CD6q+URt6Y38TY8F2x4k8P7Y2aWoQOuPk8bvEMALaOetSH0Y8zNEP5YPf7k30Z8ZUyhkt0x166gKoO/2PlzTjy5cAi+sDdCIxd74Ll7jzaUa10BDpl1iOHtLEkTJ0pssENm0g+PvJcsyzGhBRfGSLxEDhBRw1hPRT1avOwIeJQ== lrytz\n"
3+
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAva5WQeMGZxgQ1adlJQoYZCJZYTkVYSSKWu9O3EDJD+2jncUFfUdd4AsYbpYs/N2FyeoT2Gja7c03dFI6gQP3d+ZNaiO3CBYC6LvbgmCaQrffymiYw8jgD0NQqRan0nwXblmQlkxktgU0oSI/NmkpsNsMx67Pgrd+UsCchuFl7LR0CD6q+URt6Y38TY8F2x4k8P7Y2aWoQOuPk8bvEMALaOetSH0Y8zNEP5YPf7k30Z8ZUyhkt0x166gKoO/2PlzTjy5cAi+sDdCIxd74Ll7jzaUa10BDpl1iOHtLEkTJ0pssENm0g+PvJcsyzGhBRfGSLxEDhBRw1hPRT1avOwIeJQ== lrytz\n"+
4+
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVEPiQw/dw1d3YNZJ9xEoBmFGjCSIX6KSNA53PgrSTN3A1pv7bYYjlAyi4RDyrs7NyhboNm8JvDYB/MStJeFAMAsvSFcNNP1UdCZtom0+JrbdYid3MBN25PefShkjob8MgoTL+6VUYgYoip58MPGrHyGY0dH82QJHh1gyN9yGAgiKFrMpvD6h4m8FZrU1boLuMFty5FSBN7WEyC7p4+208MbH85iGzAGEeuW50CXqo21u/EFi+ZADCMaeyT81SKS25UXPKBWzrhsgk6vIH3EnmCiv1PtFmijaUhNCQrd6vAhyj6j6O4pjFZSWqvovD3WICGoCmUT/zlEajZllnnf0b darkdimius"
45

56
if (node.name =~ /.*-worker-.*/) != nil
67
case node["platform_family"]

recipes/_master-jenkins-jobs.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ def expandJobTemplates(user, repo, branch)
8484
expandJobTemplates("scala", "scala", branch)
8585
end
8686

87+
# create dotty-$branch-$jobName for every template under jobs/
88+
%w{ master }.each do | branch |
89+
expandJobTemplates("lampepfl", "dotty", branch)
90+
end
91+
8792

8893
# TODO #10: make a view for each top-level directory under jobs/ that lists all jobs under it (scala-2.11.x-integrate, scala-2.11.x-release, scala-2.11.x-validate)
8994
# https://issues.jenkins-ci.org/browse/JENKINS-8927
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project>
3+
<%= githubProject(
4+
repoUser: @user,
5+
repoName: "dotty",
6+
repoRef: @branch,
7+
description: "PR validation",
8+
nodeRestriction: "public",
9+
params: [
10+
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
11+
],
12+
jvmVersion: 8,
13+
jvmFlavor: "oracle",
14+
buildNameScript: setValidateBuildNameScript)
15+
%>
16+
</project>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<com.cloudbees.plugins.flow.BuildFlow plugin="[email protected]">
3+
<%= flowProject(
4+
repoUser: @user,
5+
repoName: "dotty",
6+
repoRef: @branch,
7+
description: "PR validation",
8+
params: [
9+
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
10+
],
11+
buildNameScript: setValidateBuildNameScript,
12+
dsl: <<-EOX
13+
parallel (
14+
{ build(params, "#{job("validate/partest)}") },
15+
{ build(params, "#{job("validate/junit)}") },
16+
{ build(params, "#{job("validate/scalastyle)}") }
17+
)
18+
19+
EOX
20+
) %>
21+
<publishers>
22+
<hudson.tasks.Mailer plugin="[email protected]">
23+
<recipients>[email protected]</recipients>
24+
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
25+
<sendToIndividuals>false</sendToIndividuals>
26+
</hudson.tasks.Mailer>
27+
</publishers>
28+
</com.cloudbees.plugins.flow.BuildFlow>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project>
3+
<%= githubProject(
4+
repoUser: @user,
5+
repoName: "dotty",
6+
repoRef: @branch,
7+
description: "PR validation",
8+
nodeRestriction: "public",
9+
params: [
10+
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
11+
],
12+
jvmVersion: 8,
13+
jvmFlavor: "oracle",
14+
buildNameScript: setValidateBuildNameScript)
15+
%>
16+
</project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project>
3+
<%= githubProject(
4+
repoUser: @user,
5+
repoName: "dotty",
6+
repoRef: @branch,
7+
description: "PR validation",
8+
nodeRestriction: "public",
9+
params: [
10+
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
11+
],
12+
jvmVersion: 8,
13+
jvmFlavor: "oracle",
14+
buildNameScript: setValidateBuildNameScript)
15+
%>
16+
</project>

templates/default/scabot.conf.erb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,20 @@ scala: {
1313
token: "<%=@scabotVault['github']['scala']['token']%>"
1414
}
1515
}
16+
17+
dotty: {
18+
jenkins: {
19+
jobSuffix: "validate-main"
20+
host: "<%=node['master']['jenkinsHost']%>"
21+
user: "<%=node['scabot']['jenkins']['user']%>"
22+
token: "<%=scabotVault['jenkins']['token']%>"
23+
}
24+
github: {
25+
user: "lampepfl"
26+
repo: "dotty"
27+
branches: ["master"]
28+
lastCommitOnly: true
29+
host: "api.github.com"
30+
token: "<%=scabotVault['github']['lampepfl']['token']%>"
31+
}
32+
}

0 commit comments

Comments
 (0)