psec
This commit is contained in:
parent
7136c97efb
commit
e6777e0699
@ -67,14 +67,21 @@ public class PlanSpec {
|
||||
public Job creatGinCloudPlatformImagesJob(String project) {
|
||||
return new Job("Build Job: " + project, new BambooKey(project.toUpperCase().replaceAll("-", "")))
|
||||
.tasks(
|
||||
// Checkout
|
||||
new VcsCheckoutTask().description("Checkout Default Repository")
|
||||
.checkoutItems(new CheckoutItem().defaultRepository()), new ScriptTask().description("Build")
|
||||
.checkoutItems(new CheckoutItem().defaultRepository()),
|
||||
// Build
|
||||
new ScriptTask().description("Build")
|
||||
.location(ScriptTaskProperties.Location.FILE)
|
||||
.fileFromPath("bamboo-specs/src/main/resources/scripts/build.sh")
|
||||
.environmentVariables(
|
||||
"PROJECT=\"" + project + "\" " +
|
||||
"BAMBOO_DOWNLOAD_PASS=\"${bamboo.bamboo_download_pass}\" " +
|
||||
"BAMBOO_DOWNLOAD_USER=\"${bamboo.bamboo_download_user}\" ")
|
||||
"BAMBOO_DOWNLOAD_USER=\"${bamboo.bamboo_download_user}\" "),
|
||||
// commit release
|
||||
new VcsCommitTask().commitMessage("chore(release)").repository("RED / ui"),
|
||||
// create tag with this version
|
||||
new VcsTagTask().tagName("${bamboo.inject.APP_VERSION}").repository("RED / ui")
|
||||
).dockerConfiguration(
|
||||
new DockerConfiguration().image("nexus.iqser.com:5001/infra/release_build:2.9.1")
|
||||
.volume("/var/run/docker.sock", "/var/run/docker.sock"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user