* Set azure devops variable if any package reports are found
* Run target in CI as well
inputs:
sourceFolder: $(Build.SourcesDirectory)/artifacts/packages
targetFolder: $(Build.ArtifactStagingDirectory)/artifacts/packages
-
+ condition: and(succeeded(), eq(variables['_librariesBuildProducedPackages'], true))
+
- task: CopyFiles@2
displayName: Prepare tmp assets to publish
inputs:
</Target>
<Import Project="$(MSBuildThisFileDirectory)dir.traversal.targets" />
+
+ <Target Name="SetAzureDevOpsVariableForBuiltPackages"
+ Condition="'$(ContinuousIntegrationBuild)' == 'true'"
+ AfterTargets="BuildAllProjects">
+ <ItemGroup>
+ <_PackageReports Include="$(PackageReportDir)*.json" />
+ </ItemGroup>
+
+ <Message Condition="'@(_PackageReports)' != ''" Importance="High" Text="##vso[task.setvariable variable=_librariesBuildProducedPackages]true" />
+ </Target>
</Project>