Skip to content

Commit

Permalink
Run generate workspace and project on slaves.
Browse files Browse the repository at this point in the history
  • Loading branch information
Northard, Robert A committed Mar 2, 2017
1 parent c9d3c9c commit 245d5b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bootstrap/Workspace_Management/Generate_Workspace.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ generateWorkspaceJob.with{
stringParam("DEVELOPER_USERS","","The list of users' email addresses that should be setup initially as developers. They will have full access to all non-admin jobs within the project.")
stringParam("VIEWER_USERS","","The list of users' email addresses that should be setup initially as viewers. They will have read-only access to all non-admin jobs within the project.")
}
label("ldap")
label("!master")
wrappers {
preBuildCleanup()
injectPasswords()
Expand Down
6 changes: 3 additions & 3 deletions projects/jobs/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ return cartridge_urls;
maskPasswords()
credentialsBinding {
file('SCM_SSH_KEY', 'adop-jenkins-private')
}
}
copyToSlaveBuildWrapper {
includes("**/**")
excludes("")
Expand All @@ -122,7 +122,7 @@ return cartridge_urls;
hudsonHomeRelative(false)
}
}
label("!master")
label("docker")
steps {
shell('''#!/bin/bash -ex
Expand Down Expand Up @@ -180,7 +180,7 @@ if(credentialId != null){
channel = build.workspace.channel;
fp = new FilePath(channel, build.workspace.toString() + "@tmp/secretFiles/" + build.getEnvVars()["SCM_KEY"])
fp.write("SCM_USERNAME="+credentialInfo[0]+"\\nSCM_PASSWORD="+credentialInfo[1], null);
fp.write("SCM_USERNAME="+credentialInfo[0]+"\\nSCM_PASSWORD="+credentialInfo[1], null);
}
'''){
Expand Down
2 changes: 1 addition & 1 deletion workspaces/jobs/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ generateProjectJob.with{
stringParam("DEVELOPER_USERS","","The list of users' email addresses that should be setup initially as developers. They will have full access to all non-admin jobs within the project.")
stringParam("VIEWER_USERS","","The list of users' email addresses that should be setup initially as viewers. They will have read-only access to all non-admin jobs within the project.")
}
label("ldap")
label("docker")
environmentVariables {
env('WORKSPACE_NAME',workspaceFolderName)
}
Expand Down

0 comments on commit 245d5b5

Please sign in to comment.