pipeline { agent none environment { TEST_AKTUALIZR_DIR = 'aktualizr' TEST_AKTUALIZR_BRANCH = 'aktualizr/master' TEST_BITBAKE_COMMON_DIR = "${env.HOME}/bitbake-common" } stages { stage('checkout') { agent any steps { checkout([$class: 'GitSCM', userRemoteConfigs: [ [url: 'https://github.com/advancedtelematic/aktualizr', name: 'aktualizr'] ], branches: [[name: 'refs/heads/master']], extensions: [ [$class: 'DisableRemotePoll'], [$class: 'PruneStaleBranch'], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'aktualizr' ] ], ]) checkout([$class: 'RepoScm', manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo', manifestBranch: null, manifestFile: 'master.xml', manifestGroup: null, mirrorDir: null, jobs: 0, depth: 0, localManifest: null, destinationDir: 'updater-repo', repoUrl: null, currentBranch: false, resetFirst: true, quiet: false, trace: false, showAllChanges: false, ]) // override meta-updater commit with currently tested branch sh ''' META_UPDATER_COMMIT=$(git rev-parse HEAD) cd updater-repo/meta-updater git checkout $META_UPDATER_COMMIT ''' } } stage('build-core-image-minimal') { agent { dockerfile { filename 'scripts/ci/Dockerfile.bitbake' } } steps { sh 'scripts/ci/configure.sh' sh 'scripts/ci/build.sh core-image-minimal' } } } } // vim: set ft=groovy tabstop=2 shiftwidth=2 expandtab: