多个pipeline分版
This commit is contained in:
parent
bd91de3b23
commit
c9cf91a25e
@ -5,9 +5,9 @@
|
||||
|
||||
// The library source code is located at //DevOps/Jenkinsfiles
|
||||
// The configuration is done in Jenkins -> Manage Jenkins -> Configure System -> Global Pipeline Libraries
|
||||
@Library(["common-shared-library", "baseballbattle-shared-library"]) _
|
||||
@Library("my-shared-lib") _
|
||||
|
||||
petHomePipeline name: "baseballbattle", // the name of the project used to identify in many places *including sky*
|
||||
Pipeline_dev name: "devGame", // the name of the project used to identify in many places *including sky*
|
||||
branch: "//Projects/CreativeCrew/baseballbattle/dev", // the code branch to checkout on Perforce
|
||||
branchConfig: "dev", // the current code branch; dev, stable, etc
|
||||
rootDir: "//Projects/CreativeCrew/baseballbattle/dev", // root directory for your code (not a virtual stream)
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
|
||||
// The library source code is located at //DevOps/Jenkinsfiles
|
||||
// The configuration is done in Jenkins -> Manage Jenkins -> Configure System -> Global Pipeline Libraries
|
||||
@Library("my-shared-lib@v1.0.0") _
|
||||
@Library("my-shared-lib") _
|
||||
|
||||
testPipeline name: "TestGame", // the name of the project used to identify in many places *including sky*
|
||||
Pipeline_release name: "releaseGame", // the name of the project used to identify in many places *including sky*
|
||||
branch: "//Projects/CreativeCrew/baseballbattle/dev", // the code branch to checkout on Perforce
|
||||
branchConfig: "dev", // the current code branch; dev, stable, etc
|
||||
rootDir: "//Projects/CreativeCrew/baseballbattle/dev", // root directory for your code (not a virtual stream)
|
||||
@ -7,7 +7,7 @@
|
||||
// The configuration is done in Jenkins -> Manage Jenkins -> Configure System -> Global Pipeline Libraries
|
||||
@Library("my-shared-lib") _
|
||||
|
||||
testPipeline name: "TestGame", // the name of the project used to identify in many places *including sky*
|
||||
Pipeline_stable name: "stableGame", // the name of the project used to identify in many places *including sky*
|
||||
branch: "//Projects/CreativeCrew/baseballbattle/dev", // the code branch to checkout on Perforce
|
||||
branchConfig: "dev", // the current code branch; dev, stable, etc
|
||||
rootDir: "//Projects/CreativeCrew/baseballbattle/dev", // root directory for your code (not a virtual stream)
|
||||
@ -22,7 +22,7 @@ def call(Map config)
|
||||
}
|
||||
steps
|
||||
{
|
||||
echo 'Test 111'
|
||||
echo 'Test dev 222'
|
||||
}
|
||||
}
|
||||
}
|
||||
48
vars/Pipeline_release.groovy
Normal file
48
vars/Pipeline_release.groovy
Normal file
@ -0,0 +1,48 @@
|
||||
//=================================================================
|
||||
// Byway Studios Inc. Confidential Information.
|
||||
// Copyright Byway Studios Inc. All rights reserved
|
||||
//=================================================================
|
||||
|
||||
def call(Map config)
|
||||
{
|
||||
pipeline
|
||||
{
|
||||
agent none
|
||||
stages
|
||||
{
|
||||
stage("Build Android")
|
||||
{
|
||||
agent
|
||||
{
|
||||
label config.winbakeLabel
|
||||
}
|
||||
options
|
||||
{
|
||||
timeout(time: 2, unit: 'HOURS')
|
||||
}
|
||||
steps
|
||||
{
|
||||
echo 'Test release 444'
|
||||
}
|
||||
}
|
||||
}
|
||||
post
|
||||
{
|
||||
always
|
||||
{
|
||||
dingtalk(
|
||||
robot:'dingtalk_unity_1',
|
||||
type:'MARKDOWN',
|
||||
title:'Build Notice',
|
||||
text: [
|
||||
"### ${currentBuild.currentResult}",
|
||||
"- Project: ${env.JOB_NAME}",
|
||||
"- BuildNumber: #${env.BUILD_NUMBER}",
|
||||
"- Duration: ${currentBuild.durationString}",
|
||||
"- LogUrl: ${env.BUILD_URL}"
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
48
vars/Pipeline_stable.groovy
Normal file
48
vars/Pipeline_stable.groovy
Normal file
@ -0,0 +1,48 @@
|
||||
//=================================================================
|
||||
// Byway Studios Inc. Confidential Information.
|
||||
// Copyright Byway Studios Inc. All rights reserved
|
||||
//=================================================================
|
||||
|
||||
def call(Map config)
|
||||
{
|
||||
pipeline
|
||||
{
|
||||
agent none
|
||||
stages
|
||||
{
|
||||
stage("Build Android")
|
||||
{
|
||||
agent
|
||||
{
|
||||
label config.winbakeLabel
|
||||
}
|
||||
options
|
||||
{
|
||||
timeout(time: 2, unit: 'HOURS')
|
||||
}
|
||||
steps
|
||||
{
|
||||
echo 'Test stable 333'
|
||||
}
|
||||
}
|
||||
}
|
||||
post
|
||||
{
|
||||
always
|
||||
{
|
||||
dingtalk(
|
||||
robot:'dingtalk_unity_1',
|
||||
type:'MARKDOWN',
|
||||
title:'Build Notice',
|
||||
text: [
|
||||
"### ${currentBuild.currentResult}",
|
||||
"- Project: ${env.JOB_NAME}",
|
||||
"- BuildNumber: #${env.BUILD_NUMBER}",
|
||||
"- Duration: ${currentBuild.durationString}",
|
||||
"- LogUrl: ${env.BUILD_URL}"
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user