File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
eng/ci/templates/official/jobs Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 6
6
project : src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
7
7
configuration : release
8
8
runtime : linux-x64
9
+ intermediate_path : $(Agent.TempDirectory)/linux_host
9
10
drop_path : $(Build.ArtifactStagingDirectory)
10
11
linux_drop_path : $(drop_path)/linux
11
12
build_args : ' -v m -c $(configuration) -r $(runtime) --self-contained true --no-restore'
48
49
zipAfterPublish : false # we use our own zip logic
49
50
modifyOutputPath : false
50
51
projects : $(project)
51
- arguments : ' $(build_args) -f net6.0 -p:MinorVersionPrefix=6 -o $(linux_drop_path)/host_net6 .0'
52
+ arguments : ' $(build_args) -f net6.0 -p:MinorVersionPrefix=6 -o $(intermediate_path)/net6 .0'
52
53
53
54
- task : DotNetCoreCLI@2
54
55
displayName : Publish (net8.0)
59
60
zipAfterPublish : false # we use our own zip logic
60
61
modifyOutputPath : false
61
62
projects : $(project)
62
- arguments : ' $(build_args) -f net8.0 -p:MinorVersionPrefix=8 -o $(linux_drop_path)/host_net8.0'
63
+ arguments : ' $(build_args) -f net8.0 -p:MinorVersionPrefix=8 -o $(intermediate_path)/net8.0'
64
+
65
+ # Pipeline artifacts do not retain file metadata and lose file permission bits.
66
+ # As a workaround, we tar/gzip the files to retain the permission bits.
67
+ - task : ArchiveFiles@2
68
+ displayName : Archive Linux Artifacts
69
+ inputs :
70
+ rootFolderOrFile : $(intermediate_path)/net6.0
71
+ includeRootFolder : false
72
+ archiveType : tar
73
+ tarCompression : gz
74
+ archiveFile : $(linux_drop_path)/host.linux-x64.net6.tar.gz
75
+
76
+ - task : ArchiveFiles@2
77
+ displayName : Archive Linux Artifacts
78
+ inputs :
79
+ rootFolderOrFile : $(intermediate_path)/net8.0
80
+ includeRootFolder : false
81
+ archiveType : tar
82
+ tarCompression : gz
83
+ archiveFile : $(linux_drop_path)/host.linux-x64.net8.tar.gz
You can’t perform that action at this time.
0 commit comments