Skip to content

dotty job templates, scabot conf #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion attributes/worker.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ssh public keys for users with access to workers
workerAuthorizedKeys =
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAva5WQeMGZxgQ1adlJQoYZCJZYTkVYSSKWu9O3EDJD+2jncUFfUdd4AsYbpYs/N2FyeoT2Gja7c03dFI6gQP3d+ZNaiO3CBYC6LvbgmCaQrffymiYw8jgD0NQqRan0nwXblmQlkxktgU0oSI/NmkpsNsMx67Pgrd+UsCchuFl7LR0CD6q+URt6Y38TY8F2x4k8P7Y2aWoQOuPk8bvEMALaOetSH0Y8zNEP5YPf7k30Z8ZUyhkt0x166gKoO/2PlzTjy5cAi+sDdCIxd74Ll7jzaUa10BDpl1iOHtLEkTJ0pssENm0g+PvJcsyzGhBRfGSLxEDhBRw1hPRT1avOwIeJQ== lrytz\n"
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAva5WQeMGZxgQ1adlJQoYZCJZYTkVYSSKWu9O3EDJD+2jncUFfUdd4AsYbpYs/N2FyeoT2Gja7c03dFI6gQP3d+ZNaiO3CBYC6LvbgmCaQrffymiYw8jgD0NQqRan0nwXblmQlkxktgU0oSI/NmkpsNsMx67Pgrd+UsCchuFl7LR0CD6q+URt6Y38TY8F2x4k8P7Y2aWoQOuPk8bvEMALaOetSH0Y8zNEP5YPf7k30Z8ZUyhkt0x166gKoO/2PlzTjy5cAi+sDdCIxd74Ll7jzaUa10BDpl1iOHtLEkTJ0pssENm0g+PvJcsyzGhBRfGSLxEDhBRw1hPRT1avOwIeJQ== lrytz\n"+
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVEPiQw/dw1d3YNZJ9xEoBmFGjCSIX6KSNA53PgrSTN3A1pv7bYYjlAyi4RDyrs7NyhboNm8JvDYB/MStJeFAMAsvSFcNNP1UdCZtom0+JrbdYid3MBN25PefShkjob8MgoTL+6VUYgYoip58MPGrHyGY0dH82QJHh1gyN9yGAgiKFrMpvD6h4m8FZrU1boLuMFty5FSBN7WEyC7p4+208MbH85iGzAGEeuW50CXqo21u/EFi+ZADCMaeyT81SKS25UXPKBWzrhsgk6vIH3EnmCiv1PtFmijaUhNCQrd6vAhyj6j6O4pjFZSWqvovD3WICGoCmUT/zlEajZllnnf0b darkdimius"

if (node.name =~ /.*-worker-.*/) != nil
case node["platform_family"]
Expand Down
5 changes: 5 additions & 0 deletions recipes/_master-jenkins-jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ def expandJobTemplates(user, repo, branch)
expandJobTemplates("scala", "scala", branch)
end

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


# 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)
# https://issues.jenkins-ci.org/browse/JENKINS-8927
Expand Down
16 changes: 16 additions & 0 deletions templates/default/jobs/lampepfl/validate/junit.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<%= githubProject(
repoUser: @user,
repoName: "dotty",
repoRef: @branch,
description: "PR validation",
nodeRestriction: "public",
params: [
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
],
jvmVersion: 8,
jvmFlavor: "openjdk",
buildNameScript: setValidateBuildNameScript)
%>
</project>
28 changes: 28 additions & 0 deletions templates/default/jobs/lampepfl/validate/main.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version='1.0' encoding='UTF-8'?>
<com.cloudbees.plugins.flow.BuildFlow plugin="[email protected]">
<%= flowProject(
repoUser: @user,
repoName: "dotty",
repoRef: @branch,
description: "PR validation",
params: [
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
],
buildNameScript: setValidateBuildNameScript,
dsl: <<-EOX
parallel (
{ build(params, "#{job("validate/partest")}") },
{ build(params, "#{job("validate/junit")}") },
{ build(params, "#{job("validate/scalastyle")}") }
)

EOX
) %>
<publishers>
<hudson.tasks.Mailer plugin="[email protected]">
<recipients>[email protected]</recipients>
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
<sendToIndividuals>false</sendToIndividuals>
</hudson.tasks.Mailer>
</publishers>
</com.cloudbees.plugins.flow.BuildFlow>
16 changes: 16 additions & 0 deletions templates/default/jobs/lampepfl/validate/partest.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<%= githubProject(
repoUser: @user,
repoName: "dotty",
repoRef: @branch,
description: "PR validation",
nodeRestriction: "public",
params: [
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
],
jvmVersion: 8,
jvmFlavor: "openjdk",
buildNameScript: setValidateBuildNameScript)
%>
</project>
16 changes: 16 additions & 0 deletions templates/default/jobs/lampepfl/validate/scalastyle.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<%= githubProject(
repoUser: @user,
repoName: "dotty",
repoRef: @branch,
description: "PR validation",
nodeRestriction: "public",
params: [
{:name => "_scabot_pr", :desc => "For internal use by Scabot."}
],
jvmVersion: 8,
jvmFlavor: "openjdk",
buildNameScript: setValidateBuildNameScript)
%>
</project>
18 changes: 18 additions & 0 deletions templates/default/scabot.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,26 @@ scala: {
github: {
repo: "scala"
branches: ["2.11.x", "2.12.x"]
lastCommitOnly: false
host: "api.github.com"
user: "scala"
token: "<%=@scabotVault['github']['scala']['token']%>"
}
}

dotty: {
jenkins: {
jobSuffix: "validate-main"
host: "<%=node['master']['jenkinsHost']%>"
user: "<%=node['scabot']['jenkins']['user']%>"
token: "<%=@scabotVault['jenkins']['token']%>"
}
github: {
user: "lampepfl"
repo: "dotty"
branches: ["master"]
lastCommitOnly: true
host: "api.github.com"
token: "<%=@scabotVault['github']['lampepfl']['token']%>"
}
}