зеркало из https://github.com/Azure/azure-utpm-c.git
400 строки
17 KiB
YAML
400 строки
17 KiB
YAML
name: $(BuildID)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
|
|
resources:
|
|
- repo: self
|
|
clean: true
|
|
phases:
|
|
- phase: checksubmodule
|
|
queue:
|
|
name: Hosted Ubuntu 1604
|
|
steps:
|
|
- script: |
|
|
sudo apt-get update && apt-get install -y \
|
|
curl \
|
|
git \
|
|
python-software-properties \
|
|
build-essential \
|
|
pkg-config
|
|
sudo curl -sL https://deb.nodesource.com/setup_6.x | bash -
|
|
sudo apt-get install -y nodejs
|
|
displayName: 'setup'
|
|
- script: |
|
|
npm install check_submodules
|
|
./../../node_modules/.bin/check_submodules . master
|
|
displayName: 'build'
|
|
- phase: windowsx86
|
|
queue:
|
|
name: 'aziotbld-win03'
|
|
steps:
|
|
- script: |
|
|
if exist jenkins\windows_c.cmd (
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
|
call jenkins\windows_c.cmd)
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: raspberrypi
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/raspberrypi-c"
|
|
queue: Hosted Ubuntu 1604
|
|
displayName: raspberrypi
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/raspberrypi_c.sh" ]
|
|
then
|
|
sudo ./jenkins/raspberrypi_c.sh
|
|
fi
|
|
displayName: 'build'
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
- phase: gcc44
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/linux-c-ubuntu-gcc4.4"
|
|
queue: Hosted Ubuntu 1604
|
|
displayName: 'gcc4.4'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/linux_c_gcc44.sh" ]
|
|
then
|
|
sudo ./jenkins/linux_c_gcc44.sh
|
|
fi
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
displayName: 'build'
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: gcc46
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/gcc-4.6:latest"
|
|
queue: Hosted Ubuntu 1604
|
|
displayName: 'gcc-4.6'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/linux_c_gcc44.sh" ]
|
|
then
|
|
sudo ./jenkins/linux_c_gcc44.sh
|
|
fi
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
displayName: 'build'
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: linuxoptions
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/vsts-linux-c-ubuntu"
|
|
queue: Hosted Ubuntu 1604
|
|
displayName: 'linux-options'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/linux_c_option_test.sh" ]
|
|
then
|
|
sudo ./jenkins/linux_c_option_test.sh
|
|
fi
|
|
displayName: 'build'
|
|
condition: always()
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: windowscex86
|
|
queue:
|
|
name: 'win'
|
|
steps:
|
|
- script: |
|
|
if exist jenkins\windowsce_c.cmd (
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
|
call jenkins\windowsce_c.cmd)
|
|
displayName: 'build'
|
|
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: windowsdynamic
|
|
queue:
|
|
name: 'aziotbld-win03'
|
|
steps:
|
|
- script: |
|
|
if exist jenkins\windows_c_build_as_dynamic.cmd (
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
|
call jenkins\windows_c_build_as_dynamic.cmd)
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: OSX
|
|
queue:
|
|
name: OSX
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/osx_gcc_openssl.sh" ]
|
|
then
|
|
./jenkins/osx_gcc_openssl.sh
|
|
fi
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: clang
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/ubuntu-clang"
|
|
queue: aziotbld-lin01
|
|
displayName: 'clang'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/ubuntu_clang.sh" ]
|
|
then
|
|
export OPENSSL_ia32cap=0x00000000
|
|
sudo chmod -R 755 .
|
|
sudo -E ./jenkins/ubuntu_clang.sh
|
|
fi
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: ubuntu1604
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/linux-c-ubuntu"
|
|
queue: aziotbld-lin02
|
|
displayName: 'ubuntu1604'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/ubuntu1604_c.sh" ]
|
|
then
|
|
export OPENSSL_ia32cap=0x00000000
|
|
sudo chmod -R 755 .
|
|
sudo -E ./jenkins/ubuntu1604_c.sh
|
|
fi
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: debian
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/c-debian"
|
|
queue: c-df
|
|
displayName: 'debian'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/debian_c.sh" ]
|
|
then
|
|
sudo chmod 755 jenkins/debian_c.sh
|
|
sudo -E ./debian_c.sh
|
|
sudo jenkins/debian_c.sh
|
|
fi
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: wolfssl
|
|
variables:
|
|
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/vsts-c-wolfssl"
|
|
queue: Hosted Ubuntu 1604
|
|
displayName: 'wolfssl'
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/linux_wolfssl.sh" ]
|
|
then
|
|
LD_LIBRARY_PATH=/usr/local/lib
|
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/my_library/
|
|
sudo jenkins/linux_wolfssl.sh
|
|
fi
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: sudo rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: windowsx64
|
|
queue:
|
|
name: 'aziotbld-win03'
|
|
displayName: 'windowsx64'
|
|
steps:
|
|
- script: |
|
|
if exist jenkins\windows_c.cmd (
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
|
call jenkins\windows_c.cmd --platform x64)
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
|
|
displayName: 'cleanup'
|
|
condition: always()
|
|
- phase: xcodenative
|
|
queue:
|
|
name: OSX
|
|
steps:
|
|
- script: |
|
|
if [ -f "jenkins/osx_xcode_native.sh" ]
|
|
then
|
|
DYLD_LIBRARY_PATH=/usr/local/Cellar/curl/7.61.0/lib
|
|
./jenkins/osx_xcode_native.sh
|
|
fi
|
|
displayName: 'build'
|
|
env:
|
|
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
|
|
IOTHUB_EVENTHUB_CONNECTION_STRING: $(IOTHUB-EVENTHUB-CONNECTION-STRING)
|
|
IOTHUB_E2E_X509_CERT_BASE64: $(IOTHUB-E2E-X509-CERT-BASE64)
|
|
IOTHUB_E2E_X509_PRIVATE_KEY_BASE64: $(IOTHUB-E2E-X509-PRIVATE-KEY-BASE64)
|
|
IOTHUB_E2E_X509_THUMBPRINT: $(IOTHUB-E2E-X509-THUMBPRINT)
|
|
IOTHUB_POLICY_KEY: $(IOTHUB-POLICY-KEY)
|
|
IOTHUB_PARTITION_COUNT: $(IOTHUB-PARTITION-COUNT)
|
|
STORAGE_ACCOUNT_CONNECTION_STRING: $(STORAGE-ACCOUNT-CONNECTION-STRING)
|
|
IOT_DPS_CONNECTION_STRING: $(IOT-DPS-CONNECTION-STRING)
|
|
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
|
|
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
|
|
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
|
|
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
|
|
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
|
|
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
|
|
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
|
|
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
|
|
- script: rm -rf $(Agent.BuildDirectory)/*
|
|
displayName: 'cleanup'
|
|
condition: always()
|