Move code to common position
This commit is contained in:
parent
4dbbbf2b42
commit
584a016c49
1 changed files with 34 additions and 0 deletions
34
build/eclipsebuild/eclipsebuild.gsh
Normal file
34
build/eclipsebuild/eclipsebuild.gsh
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// Build and export files
|
||||
def doBuild(apps) {
|
||||
for (appInfo in apps ) {
|
||||
if (appInfo[0])
|
||||
{
|
||||
retry(3) { // Eclipse occasionally raises exceptions (rather than the builds failing)
|
||||
if (isUnix()) {
|
||||
sh "${BUILD_COMMAND} -build ${appInfo[1]}/${BUILD_VARIANT}"
|
||||
}
|
||||
else {
|
||||
bat "%BUILD_COMMAND% -build ${appInfo[1]}/${BUILD_VARIANT}"
|
||||
}
|
||||
}
|
||||
echo "Looking at: ${appInfo[2]}"
|
||||
script {
|
||||
env.destFolder = "${WORKSPACE}/export/${appInfo[1]}"
|
||||
env.srcFile = "${WORKSPACE}/${appInfo[2]}"
|
||||
}
|
||||
dir (env.destFolder) {
|
||||
if (appInfo[2]) {
|
||||
echo "Copy ${srcFile} to ${destFolder}"
|
||||
if (isUnix()) {
|
||||
sh 'cp \"${srcFile}\" ${destFolder}'
|
||||
}
|
||||
else {
|
||||
bat 'copy \"%srcFile%\" %destFolder%'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
Loading…
Add table
Add a link
Reference in a new issue