
- use redfish library to manage bare-metal power state - fixup pipeline triggers and defaults - add log rotation for old builds - fix minor re-try issues - add job build/display name - use generic ssh lib Change-Id: Ic444bce266a57edcda53d021f5ede797d5ada23d
80 lines
2.1 KiB
Groovy
80 lines
2.1 KiB
Groovy
|
|
pipelineJob('airship-seaworthy') {
|
|
|
|
displayName('Airship Seaworthy')
|
|
description('Bare-metal continuous deployment pipeline')
|
|
|
|
logRotator {
|
|
daysToKeep(30)
|
|
}
|
|
|
|
parameters {
|
|
string {
|
|
defaultValue("uplift")
|
|
description("Reference to airship-treasuremap, e.g. refs/changes/12/12345/12")
|
|
name("AIRSHIP_MANIFESTS_REF")
|
|
trim(true)
|
|
}
|
|
}
|
|
|
|
|
|
concurrentBuild(false)
|
|
|
|
triggers {
|
|
gerritTrigger {
|
|
serverName('OS-CommunityGerrit')
|
|
silentMode(true)
|
|
|
|
gerritProjects {
|
|
gerritProject {
|
|
compareType('PLAIN')
|
|
pattern("openstack/airship-treasuremap")
|
|
branches {
|
|
branch {
|
|
compareType("ANT")
|
|
pattern("**")
|
|
}
|
|
}
|
|
disableStrictForbiddenFileVerification(false)
|
|
|
|
filePaths {
|
|
filePath {
|
|
compareType('ANT')
|
|
pattern('global/**')
|
|
}
|
|
filePath {
|
|
compareType('ANT')
|
|
pattern('type/**')
|
|
}
|
|
filePath {
|
|
compareType('ANT')
|
|
pattern('site/**')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
triggerOnEvents {
|
|
patchsetCreated {
|
|
excludeDrafts(false)
|
|
excludeTrivialRebase(false)
|
|
excludeNoCodeChange(false)
|
|
}
|
|
commentAddedContains {
|
|
commentAddedCommentContains('recheck')
|
|
}
|
|
}
|
|
|
|
cron('H H * * *')
|
|
}
|
|
|
|
definition {
|
|
cps {
|
|
script(readFileFromWorkspace("tools/gate/Jenkinsfile"))
|
|
sandbox()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|