Work CI-CD
Improve conditions to run nightly pipeline.
***NO_CI***
@@ -52,8 +52,8 @@ jobs:
if($commitDate -eq [System.DateTime]::UtcNow.Date)
{
# last commit is from today, build images
- echo "##vso[task.setvariable variable=GO;isOutput=true]true"
- "**Commits from today: Build ALL**" | Write-Host
+ echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]true"
+ "**Commits from today. Go and check what changed.**" | Write-Host
}
else
{
@@ -61,13 +61,13 @@ jobs:
"***************************************************" | Write-Host
"* Last commit is older than today, skipping build *" | Write-Host
"***************************************************" | Write-Host
- echo "##vso[task.setvariable variable=GO;isOutput=true]false"
+ echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]false"
}
}
else
{
# build for other reasons: build depending on target tag
- echo "##vso[task.setvariable variable=GO;isOutput=true]false"
+ echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]false"
"**build for other reasons**" | Write-Host
}
@@ -204,10 +204,11 @@ jobs:
name: TargetsToBuild
displayName: Get targets to build
- condition: eq(variables['BuildOptions.GO'], 'True')
+ condition: eq(variables['BuildOptions.CHECK_CHANGES'], 'True')
##############################
- job: Check_Code_Style
+ condition: ne(variables['System.PullRequest.PullRequestId'], '')
dependsOn:
- Check_Build_Options
