From 3c49252e812fc86859e5f163f1674f6ad7619ac4 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 15 Mar 2023 06:53:37 -0700 Subject: [PATCH] Add Azure Pipeline and remove Jenkins builds (#72) * Remove the build line from the Jenkinsfile * Add azure-pipeline.yaml to point to main archive location * Remove build.toml --- Jenkinsfile | 1 - azure-pipelines.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++ build.toml | 27 -------------------------- 3 files changed, 46 insertions(+), 28 deletions(-) create mode 100644 azure-pipelines.yml delete mode 100644 build.toml diff --git a/Jenkinsfile b/Jenkinsfile index b5fa513..77f0484 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,4 +8,3 @@ def lvVersions = [ ] diffPipeline(lvVersions) -ni.vsbuild.PipelineExecutor.execute(this, 'vs_cd_build', lvVersions) diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..812030f --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,46 @@ +trigger: + batch: true + branches: + include: + - main + - release/* + +resources: + repositories: + - repository: niveristand-custom-device-build-tools + type: github + ref: main + endpoint: nivs-custom-devices + name: ni/niveristand-custom-device-build-tools + +stages: + - template: azure-templates/stages.yml@niveristand-custom-device-build-tools + parameters: + lvVersionsToBuild: + - version: '2020' + bitness: '32bit' + - version: '2021' + bitness: '64bit' + - version: '2023' + bitness: '64bit' + + buildSteps: + - projectLocation: 'Source\SLSC EDS.lvproj' + buildOperation: 'ExecuteBuildSpec' + target: 'My Computer' + buildSpec: 'Configuration Release' + + - projectLocation: 'Source\SLSC EDS.lvproj' + buildOperation: 'ExecuteBuildSpecAllTargets' + target: 'All' + buildSpec: 'Engine Release' + + releaseVersion: '23.3.0' + buildOutputLocation: 'Built' + archiveLocation: '\\nirvana\Measurements\VeriStandAddons\slsc_eds_custom_device' + + packages: + - controlFileName: 'control' + payloadMaps: + - installLocation: 'documents\National Instruments\NI VeriStand $(lvVersion)\SLSC Plugins\Modules' + payloadLocation: 'Built' diff --git a/build.toml b/build.toml deleted file mode 100644 index 0468d57..0000000 --- a/build.toml +++ /dev/null @@ -1,27 +0,0 @@ -[archive] -build_output_dir = 'Built' -archive_location = '\\nirvana\Measurements\VeriStandAddons\slsc_eds_custom_device' - -[projects.cd] -path = 'Source\SLSC EDS.lvproj' - -[[build.steps]] -name = 'Configuration Library' -type = 'lvBuildSpec' -project = '{cd}' -target = 'My Computer' -build_spec = 'Configuration Release' - -[[build.steps]] -name = 'Engine Libraries' -type = 'lvBuildSpecAllTargets' -project = '{cd}' -build_spec = 'Engine Release' - -[package] -type = 'nipkg' -payload_dir = 'Built' -install_destination = 'documents\\National Instruments\\NI VeriStand {veristand_version}\\SLSC Plugins\\Modules' - -[notification] -type = 'teams'