String scriptPath = cpsScmFlowDefinition.getScriptPath(); if (scriptPath != null && scriptPath.trim().length() > 0) { String bcContextDir = buildConfig.getSpec().getSource().getContextDir(); if (StringUtils.isNotBlank(bcContextDir) && scriptPath.startsWith(bcContextDir)) { scriptPath = scriptPath.replaceFirst("^" + bcContextDir + "/?", "");
public BuildSourceBuilder( BuildSourceFluent<?> fluent , BuildSource instance ){ this.fluent = fluent; fluent.withContextDir(instance.getContextDir()); fluent.withGit(instance.getGit()); fluent.withSourceSecret(instance.getSourceSecret()); fluent.withType(instance.getType()); } public BuildSourceBuilder( BuildSource instance ){
public BuildSourceBuilder( BuildSourceFluent<?> fluent , BuildSource instance ){ this.fluent = fluent; fluent.withContextDir(instance.getContextDir()); fluent.withGit(instance.getGit()); fluent.withSourceSecret(instance.getSourceSecret()); fluent.withType(instance.getType()); } public BuildSourceBuilder( BuildSource instance ){
public BuildSourceBuilder( BuildSource instance ){ this.fluent = this; this.withContextDir(instance.getContextDir()); this.withGit(instance.getGit()); this.withSourceSecret(instance.getSourceSecret()); this.withType(instance.getType()); }
public BuildSourceBuilder( BuildSource instance ){ this.fluent = this; this.withContextDir(instance.getContextDir()); this.withGit(instance.getGit()); this.withSourceSecret(instance.getSourceSecret()); this.withType(instance.getType()); }
jenkinsfilePath = DEFAULT_JENKINS_FILEPATH; if (!isEmpty(source.getContextDir())) { jenkinsfilePath = new File(source.getContextDir(), jenkinsfilePath).getPath();
public BuildConfigProjectProperty(BuildConfig bc) { this( bc.getMetadata().getNamespace(), bc.getMetadata().getName(), bc.getMetadata().getUid(), bc.getMetadata().getResourceVersion(), bc.getSpec().getSource().getContextDir() ); }
public BuildSourceFluentImpl(BuildSource instance){ this.withBinary(instance.getBinary()); this.withContextDir(instance.getContextDir()); this.withDockerfile(instance.getDockerfile()); this.withGit(instance.getGit()); this.withImages(instance.getImages()); this.withSecrets(instance.getSecrets()); this.withSourceSecret(instance.getSourceSecret()); this.withType(instance.getType()); }
public BuildSourceBuilder(BuildSource instance,Boolean validationEnabled){ this.fluent = this; this.withBinary(instance.getBinary()); this.withContextDir(instance.getContextDir()); this.withDockerfile(instance.getDockerfile()); this.withGit(instance.getGit()); this.withImages(instance.getImages()); this.withSecrets(instance.getSecrets()); this.withSourceSecret(instance.getSourceSecret()); this.withType(instance.getType()); this.validationEnabled = validationEnabled; }
public BuildSourceBuilder(BuildSourceFluent<?> fluent,BuildSource instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withBinary(instance.getBinary()); fluent.withContextDir(instance.getContextDir()); fluent.withDockerfile(instance.getDockerfile()); fluent.withGit(instance.getGit()); fluent.withImages(instance.getImages()); fluent.withSecrets(instance.getSecrets()); fluent.withSourceSecret(instance.getSourceSecret()); fluent.withType(instance.getType()); this.validationEnabled = validationEnabled; } public BuildSourceBuilder(BuildSource instance){
contextDir = buildConfig.getSpec().getSource().getContextDir();