Skip to content

Commit

Permalink
feat(echo): add trigger field for custom triggers that deal with arti…
Browse files Browse the repository at this point in the history
…facts (#309)
  • Loading branch information
emjburns authored Aug 6, 2018
1 parent 4a2c66f commit 0412f0e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@JsonDeserialize(builder = Trigger.TriggerBuilder.class)
@Builder(toBuilder = true)
@Wither
@ToString(of = {"id", "parent", "type", "master", "job", "cronExpression", "source", "project", "slug", "account", "repository", "tag", "parameters", "payloadConstraints", "attributeConstraints", "branch", "runAsUser", "subscriptionName", "pubsubSystem", "expectedArtifactIds", "payload", "status"}, includeFieldNames = false)
@ToString(of = {"id", "parent", "type", "master", "job", "cronExpression", "source", "project", "slug", "account", "repository", "tag", "parameters", "payloadConstraints", "attributeConstraints", "branch", "runAsUser", "subscriptionName", "pubsubSystem", "expectedArtifactIds", "payload", "status", "artifactName"}, includeFieldNames = false)
@Value
public class Trigger {
public enum Type {
Expand Down Expand Up @@ -104,6 +104,11 @@ public String toString() {
List<String> expectedArtifactIds;
Map<String, ?> lastSuccessfulExecution;

/**
* Field to use for custom triggers involving artifacts
*/
String artifactName;

// this is set after deserialization, not in the json representation
@JsonIgnore
Pipeline parent;
Expand Down

0 comments on commit 0412f0e

Please sign in to comment.