yakworks.rally.job.SyncJob.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rally-domain Show documentation
Show all versions of rally-domain Show documentation
gorm domain models for core app and testing
/*
* Copyright 2019 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package yakworks.rally.job
import groovy.transform.CompileDynamic
import org.grails.datastore.mapping.config.MappingDefinition
import gorm.tools.hibernate.type.JsonType
import gorm.tools.job.SyncJobEntity
import gorm.tools.repository.RepoLookup
import gorm.tools.repository.model.RepoEntity
import grails.compiler.GrailsCompileStatic
import grails.gorm.annotation.Entity
import yakworks.security.audit.AuditStampTrait
import static grails.gorm.hibernate.mapping.MappingBuilder.orm
/**
* An instance created right away when "any job" in 9ci is called.
* Either called through restApi from outside, scheduled job in quartz or
* manually started job (Look at SourceTrait)
* Job may no longer exist to query. 9ci only logs the last 100 jobs. Jobs also expire within an hour.
*/
@Entity
@GrailsCompileStatic
class SyncJob implements RepoEntity, SyncJobEntity, AuditStampTrait, Serializable {
// List