Skip to content

Commit

Permalink
IDE-30 Build-parameter to build Catroid with Paintroid develop (Catro…
Browse files Browse the repository at this point in the history
…bat#4679)

Co-authored-by: Julia Herold <[email protected]>
  • Loading branch information
2 people authored and becothas committed Nov 18, 2023
1 parent 283116b commit 40a7c22
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,23 @@ pipeline {
booleanParam name: 'INCLUDE_HUAWEI_FILES', defaultValue: false, description: 'Embed any huawei files that are needed'
string name: 'DEBUG_LABEL', defaultValue: '', description: 'For debugging when entered will be used as label to decide on which slaves the jobs will run.'
string name: 'DOCKER_LABEL', defaultValue: '', description: 'When entered will be used as label for docker catrobat/catroid-android image to build'
separator(name: "Build with Paintroid",
separatorStyle: "border-width: 0",
sectionHeaderStyle: """
background-color: #ffff00;
text-align: center;
padding: 4px;
color: #000000;
font-size: 20px;
font-weight: normal;
font-family: 'Orienta', sans-serif;
letter-spacing: 1px;
font-style: italic;
""")
booleanParam name: 'BUILD_WITH_PAINTROID', defaultValue: true, description: 'Builds ' +
'catroid with paintroid develop or specified branch'
string name: 'PAINTROID_BRANCH', defaultValue: 'develop', description: 'The branch which ' +
'to build paintroid with, when BUILD_WITH_PAINTROID is enabled.'
separator(name: "TEST_STAGES", sectionHeader: "Test Stages - CAUTION: The PR needs to be rebuild again with all test stages enabled before Code Review!!",
separatorStyle: "border-width: 0",
sectionHeaderStyle: """
Expand Down Expand Up @@ -204,6 +221,29 @@ pipeline {
}
}

stage('Build with Paintroid') {
when {
expression {
params.BUILD_WITH_PAINTROID
}
}

steps {
sh 'rm -rf Paintroid; mkdir Paintroid'
dir('Paintroid') {
git branch: params.PAINTROID_BRANCH, url: 'https://github' +
'.com/Catrobat/Paintroid.git'
sh "./gradlew assembleDebug"

sh 'rm -f ../catroid/src/main/libs/*.aar'
sh 'mv -f colorpicker/build/outputs/aar/colorpicker-debug.aar ../catroid/src/main/libs/colorpicker-LOCAL.aar'
sh 'mv -f Paintroid/build/outputs/aar/Paintroid-debug.aar ../catroid/src/main/libs/Paintroid-LOCAL.aar'

archiveArtifacts '../catroid/src/main/libs/colorpicker-LOCAL.aar'
archiveArtifacts '../catroid/src/main/libs/Paintroid-LOCAL.aar'}
}
}

stage('Static Analysis') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
Expand Down

0 comments on commit 40a7c22

Please sign in to comment.