All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chavaillaz.client.jenkins.domain.job.pipeline.Node Maven / Gradle / Ivy

package com.chavaillaz.client.jenkins.domain.job.pipeline;

import java.time.Duration;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;

import com.chavaillaz.client.jenkins.utility.Utils;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Node {

    private Duration duration;
    private String id;
    private String name;
    private List stageFlowNodes = new ArrayList<>();
    private OffsetDateTime startTime;
    private Status status;

    @JsonSetter
    public void setStartTimeMillis(long ms) {
        this.startTime = Utils.dateTimeFromMs(ms);
    }

    @JsonSetter
    public void setDurationMillis(long ms) {
        this.duration = Duration.ofMillis(ms);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy