Skip to content

Commit

Permalink
enable private build when stage type is DEV (#1453)
Browse files Browse the repository at this point in the history
* set private deploy flag when dev is selected

* remove unused imports
  • Loading branch information
rwxzhu authored Feb 21, 2024
1 parent da0be5c commit f61bfea
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
*/
package com.pinterest.deployservice.bean;

import com.pinterest.deployservice.common.DeployInternalException;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.StringEscapeUtils;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import javax.validation.constraints.Pattern;

/**
* Keep the bean and table in sync
Expand Down Expand Up @@ -558,6 +556,9 @@ public EnvType getStage_type() {

public void setStage_type(EnvType stage_type) {
this.stage_type = stage_type;
if (this.stage_type.equals(EnvType.DEV)) {
this.setAllow_private_build(true);
}
}

public Boolean getIs_sox() {
Expand Down

0 comments on commit f61bfea

Please sign in to comment.