diff --git a/custom-jobs/krita/Krita_Nightly_MacOS_Build.pipeline b/custom-jobs/krita/Krita_Nightly_MacOS_Build.pipeline index f72bbfd..93cd9e9 100644 --- a/custom-jobs/krita/Krita_Nightly_MacOS_Build.pipeline +++ b/custom-jobs/krita/Krita_Nightly_MacOS_Build.pipeline @@ -1,72 +1,72 @@ // Request a node to be allocated to us node( "macOS" ) { // 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() // Krita Code checkout changelog: true, poll: true, scm: [ $class: 'GitSCM', branches: [[name: 'master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'krita/']], userRemoteConfigs: [[url: 'https://anongit.kde.org/krita']] ] } // Now retrieve the artifacts stage('Retrieving Dependencies') { // First we grab the artifacted dependencies built last time round copyArtifacts filter: 'krita-macos-deps.tar', projectName: 'Krita_Nightly_MacOS_Dependency_Build' // Now we unpack them // We also make sure our build workspace is ready at the same time sh """ export BUILDROOT=\$HOME/KritaBuild/ [[ -d \$BUILDROOT ]] || mkdir \$BUILDROOT [[ -s \$BUILDROOT/krita ]] || ln -s \$WORKSPACE/krita \$BUILDROOT/krita cd \$BUILDROOT tar -xf $WORKSPACE/krita-macos-deps.tar """ } // Let's build Krita now that we have everything we need stage('Building Krita') { // The first parameter to the script is what it should be doing - which is building and installing Krita // The workspace it uses was setup in the previous step sh """ export PATH=\$HOME/Craft/Krita/macos-64-clang/bin/:\$HOME/Craft/Krita/macos-64-clang/dev-utils/bin/:\$PATH export BUILDROOT=\$HOME/KritaBuild/ bash krita/packaging/macos/osxbuild.sh buildinstall """ } // Now we can generate the actual DMG! stage('Generating Krita DMG') { // The scripts handle everything here, so just run them sh """ export PATH=\$HOME/Craft/Krita/macos-64-clang/bin/:\$HOME/Craft/Krita/macos-64-clang/dev-utils/bin/:\$PATH export BUILDROOT=\$HOME/KritaBuild/ - bash krita/packaging/macos/osxdeploy.sh + bash krita/packaging/macos/osxdeploy.sh -s="K Desktop Environment e.V. (5433B4KXM8)" -notarize-ac="apple-store@kde.org" -asc-provider="5433B4KXM8" mv \$BUILDROOT/*.dmg \$WORKSPACE/ """ } // Finally we capture the DMG for distribution to users stage('Capturing DMGs') { // We use Jenkins artifacts for this to save having to setup additional infrastructure archiveArtifacts artifacts: '*.dmg', onlyIfSuccessful: true } } } }