2017-01-18 14:33:36 +01:00
|
|
|
#!groovy
|
|
|
|
|
2023-01-24 15:29:31 +01:00
|
|
|
/* Copyright (c) Cloud Software Group, Inc.
|
2017-12-07 15:39:32 +01:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms,
|
|
|
|
* with or without modification, are permitted provided
|
|
|
|
* that the following conditions are met:
|
|
|
|
*
|
|
|
|
* * Redistributions of source code must retain the above
|
|
|
|
* copyright notice, this list of conditions and the
|
|
|
|
* following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above
|
|
|
|
* copyright notice, this list of conditions and the
|
|
|
|
* following disclaimer in the documentation and/or other
|
|
|
|
* materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
|
|
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
2017-01-18 14:33:36 +01:00
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2023-07-22 16:52:32 +02:00
|
|
|
def XENADMIN_BRANDING_TAG = 'cdn-updates'
|
2020-06-16 01:24:52 +02:00
|
|
|
|
2023-07-28 12:05:29 +02:00
|
|
|
@Library(['PacmanSharedLibrary', "xencenter-pipeline@v4.9"])
|
2020-06-16 01:24:52 +02:00
|
|
|
import com.citrix.pipeline.xencenter.*
|
2017-01-25 12:42:22 +01:00
|
|
|
|
2017-01-18 14:33:36 +01:00
|
|
|
properties([
|
2020-06-16 01:24:52 +02:00
|
|
|
[
|
|
|
|
$class : 'BuildDiscarderProperty',
|
|
|
|
strategy: [
|
|
|
|
$class: 'LogRotator',
|
|
|
|
numToKeepStr: '10',
|
|
|
|
artifactNumToKeepStr: '10'
|
|
|
|
]
|
|
|
|
]
|
2017-01-18 14:33:36 +01:00
|
|
|
])
|
|
|
|
|
2020-06-16 01:24:52 +02:00
|
|
|
def builder = null
|
2020-09-22 16:24:59 +02:00
|
|
|
def globals = globals()
|
2017-01-18 14:33:36 +01:00
|
|
|
|
2020-09-22 16:24:59 +02:00
|
|
|
node(globals.buildNodeLabel) {
|
2020-06-16 01:24:52 +02:00
|
|
|
try {
|
2020-09-22 16:24:59 +02:00
|
|
|
builder = new Build(globals)
|
2020-06-16 01:24:52 +02:00
|
|
|
builder.xenadminBrandingTag = XENADMIN_BRANDING_TAG
|
|
|
|
|
2021-01-26 15:58:59 +01:00
|
|
|
runPipeline(builder)
|
2020-06-16 01:24:52 +02:00
|
|
|
currentBuild.result = 'SUCCESS'
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
currentBuild.result = 'FAILURE'
|
|
|
|
throw ex
|
|
|
|
} finally {
|
2021-04-01 15:38:41 +02:00
|
|
|
buildComplete(builder)
|
2017-01-18 14:33:36 +01:00
|
|
|
}
|
|
|
|
}
|