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

net.nemerosa.ontrack.model.structure.RunInfo.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.structure

/**
 * Contains information about the CI run for a
 * [validation run][ValidationRun] or a
 * [build][Build].
 *
 * @property id Unique ID of the run info
 * @property sourceType Type of source (like "jenkins")
 * @property sourceUri URI to the source of the run (like the URL to a Jenkins job)
 * @property triggerType Type of trigger (like "scm" or "user")
 * @property triggerData Data associated with the trigger (like a user ID or a commit)
 * @property runTime Time of the run (in seconds)
 */
open class RunInfo(
        val id: Int,
        val sourceType: String?,
        val sourceUri: String?,
        val triggerType: String?,
        val triggerData: String?,
        val runTime: Int?,
        val signature: Signature?
) {
    val empty = id == 0

    companion object {
        fun empty() = RunInfo(
                id = 0,
                sourceType = null,
                sourceUri = null,
                triggerType = null,
                triggerData = null,
                runTime = null,
                signature = null
        )
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy