You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/01/08 12:25:22 UTC

[lucenenet] 07/15: azure-pipelines.yml: Updated to correctly case version.props file for packaging, and to ignore build.bat because we no longer modify it during release

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit f990bd3d857c86c46045f66d86e33d8488f2857d
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sat Jan 8 11:29:07 2022 +0700

    azure-pipelines.yml: Updated to correctly case version.props file for packaging, and to ignore build.bat because we no longer modify it during release
---
 azure-pipelines.yml | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index a530ac4..8926762 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -185,15 +185,14 @@ stages:
       displayName: 'Persist Test Settings to lucene.testsettings.json'
       condition: and(succeeded(), ne(variables['RunTests'], 'false'))
 
-    # If this is a release pipeline, copy the build.bat and Version.props files as version artifacts, which will 
-    # overwrite the build.bat and Version.props files of the release.
+    # If this is a release pipeline, copy the version.props files as a version artifact, which will
+    # be included in the release.
     - task: CopyFiles@2
-      displayName: 'Copy build.bat and Version.props Files to: /$(VersionArtifactName)'
+      displayName: 'Copy version.props Files to: /$(VersionArtifactName)'
       inputs:
         SourceFolder: '$(System.DefaultWorkingDirectory)'
         Contents: |
-          build.bat
-          Version.props
+          version.props
         TargetFolder: '$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)'
       condition: and(succeeded(), eq(variables['IsRelease'], 'true'))
             
@@ -704,12 +703,14 @@ stages:
         Write-Host "##vso[task.setvariable variable=PackageVersion;]$version"
         Write-Host "##vso[build.updatebuildnumber]$version"
       displayName: 'Build VCS Label and Rehydrate Version Variables'
+
     - pwsh: |
-        $files = 'build.bat','Version.props'
+        [string[]]$files = @('version.props')
         foreach ($file in $files) {
             Copy-Item -Path "$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)/$file" -Destination "$(Build.SourcesDirectory)/$file" -Force -ErrorAction Continue
         }
-      displayName: 'Update build.bat and Version.props to build only version $(PackageVersion)'
+      displayName: 'Update version.props to build only version $(PackageVersion)'
+
     - template: '.build/azure-templates/show-all-environment-variables.yml'
 
     - task: CopyFiles@2
@@ -719,10 +720,12 @@ stages:
         Contents: |
          **
          !.git/**/*
+         !.github/**/*
          !branding/**/*
-         !release/**/*
+         !_artifacts/**/*
          !src/**/bin/**/*
          !src/**/obj/**/*
+         !websites/**/*
          branding/logo/lucene-net-icon-128x128.png
         TargetFolder: '$(Build.ArtifactStagingDirectory)/srctemp'
 
@@ -767,6 +770,4 @@ stages:
       inputs:
         targetPath: '$(Build.ArtifactStagingDirectory)/$(ReleaseArtifactName)'
         artifact:  '$(ReleaseArtifactName)'
-        publishLocation: 'pipeline'
-
-# LUCENENET TODO: Write VCS Label (git tag) automatically
\ No newline at end of file
+        publishLocation: 'pipeline'
\ No newline at end of file