diff --git a/custom-jobs/kmymoney/KMyMoney_Release_Appimage_Build.pipeline b/custom-jobs/kmymoney/KMyMoney_Release_Appimage_Build.pipeline index 03b2821..e07ff6d 100644 --- a/custom-jobs/kmymoney/KMyMoney_Release_Appimage_Build.pipeline +++ b/custom-jobs/kmymoney/KMyMoney_Release_Appimage_Build.pipeline @@ -1,79 +1,79 @@ // Ask for parameters we will need later on def buildParameters = input( message: 'Which version of KMyMoney is being built?', ok: 'Begin Build', parameters: [ - choice(choices: "stable\nunstable\n", description: '', name: 'Release'), + choice(choices: "stable\nunstable\n", description: '', name: 'Release'), string(defaultValue: '', description: '', name: 'Version', trim: true) ] ) // Request a node to be allocated to us node( "Appimage1404" ) { // We want Timestamps on everything timestamps { // We want to catch any errors that occur to allow us to send out notifications (ie. emails) if needed catchError { // First Thing: Checkout Sources stage('Checkout Sources') { // Make sure we have a clean slate to begin with deleteDir() // Now we download the release tarball, unpack it and rename the directory to something more convenient to use everywhere else sh """ wget "https://origin.download.kde.org/${buildParameters['Release']}/kmymoney/${buildParameters['Version']}/src/kmymoney-${buildParameters['Version']}.tar.xz" tar -xf "$WORKSPACE/kmymoney-${buildParameters['Version']}.tar.xz" mv kmymoney-${buildParameters['Version']} kmymoney """ } // Now retrieve the artifacts stage('Retrieving Dependencies') { // First we grab the artifacted dependencies built last time round copyArtifacts filter: 'kmymoney-appimage-deps.tar', projectName: 'KMyMoney_Nightly_Appimage_Dependency_Build' // Now we unpack them sh """ mkdir -p $HOME/appimage-workspace/ cd $HOME/appimage-workspace/ tar -xf $WORKSPACE/kmymoney-appimage-deps.tar """ } // Let's build KMyMoney that we have everything we need stage('Building KMyMoney') { // The first parameter to the script is where the scripts should work - which is our workspace in this case // Otherwise we leave everything in the hands of that script sh """ export PATH=$HOME/tools/bin/:$PATH ln -s /usr/bin/gcc-6 $HOME/tools/bin/cc ln -s /usr/bin/gcc-6 $HOME/tools/bin/gcc ln -s /usr/bin/g++-6 $HOME/tools/bin/c++ ln -s /usr/bin/g++-6 $HOME/tools/bin/g++ kmymoney/packaging/linux/appimage/build-kmymoney.sh $HOME/appimage-workspace/ $WORKSPACE/kmymoney/ """ } // Now we can generate the actual Appimages! stage('Generating KMyMoney Appimage') { // The scripts handle everything here, so just run them sh """ export PATH=$HOME/tools/bin/:$PATH kmymoney/packaging/linux/appimage/build-image.sh $HOME/appimage-workspace/ $WORKSPACE/kmymoney/ - mv $HOME/appimage-workspace/*.appimage $WORKSPACE/ + mv $HOME/appimage-workspace/*.AppImage $WORKSPACE/ """ } // Finally we capture the appimages for distribution to users stage('Capturing Appimages') { // We use Jenkins artifacts for this to save having to setup additional infrastructure - archiveArtifacts artifacts: '*.appimage', onlyIfSuccessful: true + archiveArtifacts artifacts: '*.AppImage', onlyIfSuccessful: true } } } }