Azure CI: Install monitoring (#1640)
authorAlexander Zhogov <alexander.zhogov@intel.com>
Wed, 5 Aug 2020 09:44:37 +0000 (12:44 +0300)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 09:44:37 +0000 (12:44 +0300)
* Azure CI: Install monitoring

* Fix cleaning

azure-pipelines.yml

index 21a0c24..084245a 100644 (file)
@@ -12,6 +12,11 @@ jobs:
     BIN_DIR: ../bin/intel64/$(BUILD_TYPE)
   steps:
   - script: |
+      git clean -xdf
+      git reset --hard HEAD
+      git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
+    displayName: 'Clone submodules'
+  - script: |
       whoami
       uname -a
       which python3
@@ -24,6 +29,8 @@ jobs:
       vmstat -s
       df
     displayName: 'System properties'
+  - script: curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
+    displayName: Install monitoring
   - script: |
       sudo apt --assume-yes install libusb-1.0-0-dev
       python3 -m pip install -r ./inference-engine/ie_bridges/python/requirements.txt
@@ -36,11 +43,6 @@ jobs:
       sudo cp -v ninja /usr/local/bin/
     displayName: 'Install Ninja'
   - script: |
-      git clean -xdf
-      git reset --hard HEAD
-      git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
-    displayName: 'Clone submodules'
-  - script: |
       mkdir dldt-build
       cd dldt-build
     displayName: 'Create build directory'
@@ -137,6 +139,11 @@ jobs:
     inputs:
       versionSpec: '3.7'
   - script: |
+      git clean -xdf
+      git reset --hard HEAD
+      git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
+    displayName: 'Clone submodules'
+  - script: |
       whoami
       uname -a
       which python3
@@ -153,11 +160,6 @@ jobs:
   - script: brew install ninja
     displayName: 'Install Ninja'
   - script: |
-      git clean -xdf
-      git reset --hard HEAD
-      git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
-    displayName: 'Clone submodules'
-  - script: |
       mkdir dldt-build
       cd dldt-build
     displayName: 'Create build directory'
@@ -244,6 +246,11 @@ jobs:
     MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
   steps:
   - script: |
+      git clean -xdf
+      git reset --hard HEAD
+      git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
+    displayName: 'Clone submodules'
+  - script: |
       where python3
       where python
       python --version
@@ -253,16 +260,13 @@ jobs:
       wmic VOLUME list
       set
     displayName: 'System properties'
+  - powershell: Invoke-RestMethod -Headers @{"Metadata"="true"} -URI http://169.254.169.254/metadata/instance?api-version=2017-08-01 -Method get | Format-Custom
+    displayName: Install monitoring
   - script: |
       certutil -urlcache -split -f https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip ninja-win.zip
       powershell -command "Expand-Archive -Force ninja-win.zip"
     displayName: Install Ninja
   - script: |
-      git clean -xdf
-      git reset --hard HEAD
-      git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
-    displayName: 'Clone submodules'
-  - script: |
       rd /Q /S $(BUILD_DIR)
       mkdir $(BUILD_DIR)\bin
       rd /Q /S dldt-build