Skip to content

Commit

Permalink
custom checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
carstene1ns committed Dec 3, 2023
1 parent 982c500 commit 4385b16
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions player/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ pipeline {
agent none
stages {
stage('Prepare') {
agent any
agent any // usually main, because others are reserved
steps {
dir('player') {
git url: 'https://github.com/EasyRPG/Player.git'
}
echo "Prepare"
//sh "rm -rf build"
//bat "rd /S /Q build"
}
Expand All @@ -28,6 +26,7 @@ pipeline {
stage('Prepare') {
steps {
echo "Prepare"
myCheckout
}
}
stage('Build') {
Expand All @@ -48,6 +47,7 @@ pipeline {
stage('Prepare') {
steps {
echo "Prepare"
myCheckout
}
}
stage('Build') {
Expand Down Expand Up @@ -75,6 +75,7 @@ pipeline {
stage('Prepare') {
steps {
echo "Prepare"
myCheckout
}
}
stage('Build') {
Expand Down Expand Up @@ -114,3 +115,11 @@ pipeline {

}
}


/* custom, shared checkout function */
void myCheckout() {
dir('player') {
git url: 'https://github.com/EasyRPG/Player.git'
}
}

0 comments on commit 4385b16

Please sign in to comment.