From 1d0547fd72542f55b9fc4fc756412c51cd9f02f8 Mon Sep 17 00:00:00 2001 From: "kun.tang" Date: Sun, 29 Sep 2024 10:00:11 +0800 Subject: [PATCH] StageFlowNode add id field --- .../com/cdancy/jenkins/rest/domain/job/StageFlowNode.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/cdancy/jenkins/rest/domain/job/StageFlowNode.java b/src/main/java/com/cdancy/jenkins/rest/domain/job/StageFlowNode.java index 564445c9..9ffde670 100644 --- a/src/main/java/com/cdancy/jenkins/rest/domain/job/StageFlowNode.java +++ b/src/main/java/com/cdancy/jenkins/rest/domain/job/StageFlowNode.java @@ -24,7 +24,7 @@ @AutoValue public abstract class StageFlowNode { - + public abstract Integer id(); public abstract String name(); public abstract String status(); @@ -38,8 +38,8 @@ public abstract class StageFlowNode { StageFlowNode() { } - @SerializedNames({ "name", "status", "startTimeMillis", "durationTimeMillis", "parentNodes" }) - public static StageFlowNode create(String name, String status, long startTimeMillis, long durationTimeMillis, List parentNodes) { - return new AutoValue_StageFlowNode(name, status, startTimeMillis, durationTimeMillis, parentNodes); + @SerializedNames({ "id","name", "status", "startTimeMillis", "durationTimeMillis", "parentNodes" }) + public static StageFlowNode create(Integer id,String name, String status, long startTimeMillis, long durationTimeMillis, List parentNodes) { + return new AutoValue_StageFlowNode(id,name, status, startTimeMillis, durationTimeMillis, parentNodes); } }