File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,21 +104,23 @@ stages:
104104 vmImage : ' ubuntu-latest'
105105 variables :
106106 PUBLISH_LOCATION : ' $(Build.ArtifactStagingDirectory)'
107+ SOURCE_LOCATION : ' $(Build.SourcesDirectory)'
107108 steps :
108109 - checkout : self
109110 # find the commit hash on a quick non-forced update too
110111 fetchDepth : 10
112+ path : ' pcl'
111113 - task : Bash@3
112114 displayName : " Remove git files"
113115 inputs :
114116 targetType : ' inline'
115117 script : ' rm -fr ./.git'
116- workingDirectory : ' $(Build.SourcesDirectory )'
118+ workingDirectory : ' $(SOURCE_LOCATION )'
117119 failOnStderr : true
118120 - task : ArchiveFiles@2
119121 displayName : " Create release archive (.tar.gz)"
120122 inputs :
121- rootFolderOrFile : ' $(Build.SourcesDirectory )'
123+ rootFolderOrFile : ' $(SOURCE_LOCATION )'
122124 includeRootFolder : true
123125 archiveType : ' tar'
124126 archiveFile : ' $(PUBLISH_LOCATION)/source.tar.gz'
@@ -127,7 +129,7 @@ stages:
127129 - task : ArchiveFiles@2
128130 displayName : " Create release archive (.zip)"
129131 inputs :
130- rootFolderOrFile : ' $(Build.SourcesDirectory )'
132+ rootFolderOrFile : ' $(SOURCE_LOCATION )'
131133 includeRootFolder : true
132134 archiveType : ' zip'
133135 archiveFile : ' $(PUBLISH_LOCATION)/source.zip'
You can’t perform that action at this time.
0 commit comments