|
| 1 | +# PublishSymbols |
| 2 | +# |
| 3 | +# Index your source code and publish symbols to a file share or Azure Artifacts symbol server |
| 4 | +# |
| 5 | +# Version: 2.172.0 |
| 6 | +# |
| 7 | +# Reference: https://docs.microsoft.com/azure/devops/pipelines/tasks/build/index-sources-publish-symbols |
| 8 | +# Task.json: https://raw.githubusercontent.com/microsoft/azure-pipelines-tasks/master/Tasks/PublishSymbolsV2/task.json |
| 9 | +--- |
| 10 | +parameters: |
| 11 | + # region Step Configurations |
| 12 | + |
| 13 | + displayName: 'Publish symbols path' |
| 14 | + enabled: true |
| 15 | + continueOnError: false |
| 16 | + condition: succeeded() |
| 17 | + timeoutInMinutes: 0 |
| 18 | + |
| 19 | + # endregion |
| 20 | + |
| 21 | + # region Advanced |
| 22 | + |
| 23 | + # Verbose logging |
| 24 | + # |
| 25 | + # Use verbose logging. |
| 26 | + DetailedLog : true # Optional |
| 27 | + |
| 28 | + # Warn if not indexed |
| 29 | + # |
| 30 | + # Indicates whether to warn if sources are not indexed for a PDB file. Otherwise the messages are logged |
| 31 | + # as normal output. |
| 32 | + TreatNotIndexedAsWarning : false # Optional |
| 33 | + |
| 34 | + # Max wait time (min) |
| 35 | + # |
| 36 | + # The number of minutes to wait before failing this task. |
| 37 | + SymbolsMaximumWaitTime : "" # Optional |
| 38 | + |
| 39 | + # Product |
| 40 | + # |
| 41 | + # Specify the product parameter to symstore.exe. The default is $(Build.DefinitionName) |
| 42 | + SymbolsProduct : "" # Optional |
| 43 | + |
| 44 | + # Version |
| 45 | + # |
| 46 | + # Specify the version parameter to symstore.exe. The default is $(Build.BuildNumber) |
| 47 | + SymbolsVersion : "" # Optional |
| 48 | + |
| 49 | + # Artifact name |
| 50 | + # |
| 51 | + # Specify the artifact name to use for the Symbols artifact. The default is Symbols_$(BuildConfiguration) |
| 52 | + SymbolsArtifactName : "Symbols_$(BuildConfiguration)" # Optional |
| 53 | + |
| 54 | + # endregion |
| 55 | + |
| 56 | + # region Ungrouped Configurations |
| 57 | + |
| 58 | + # Path to symbols folder |
| 59 | + # |
| 60 | + # The path to the folder that is searched for symbol files. The default is $(Build.SourcesDirectory). |
| 61 | + # Otherwise specify a rooted path, for example: $(Build.BinariesDirectory)/MyProject |
| 62 | + SymbolsFolder : "$(Build.SourcesDirectory)" # Optional |
| 63 | + |
| 64 | + # Search pattern |
| 65 | + # |
| 66 | + # The pattern used to discover the pdb files to publish. |
| 67 | + SearchPattern : | # Required |
| 68 | + **/bin/**/*.pdb |
| 69 | + |
| 70 | + # Index sources |
| 71 | + # |
| 72 | + # Indicates whether to inject source server information into the PDB files. |
| 73 | + IndexSources : true # Optional |
| 74 | + |
| 75 | + # Publish symbols |
| 76 | + # |
| 77 | + # Indicates whether to publish the symbol files. |
| 78 | + PublishSymbols : true # Optional |
| 79 | + |
| 80 | + # Symbol server type |
| 81 | + # |
| 82 | + # Choose where to publish symbols. Symbols published to the Azure Artifacts symbol server are accessible |
| 83 | + # by any user with access to the organization/collection. Azure DevOps Server only supports the "File share" |
| 84 | + # option. Follow [these instructions](https://go.microsoft.com/fwlink/?linkid=846265) to use Symbol Server |
| 85 | + # in Azure Artifacts. |
| 86 | + # Options: |
| 87 | + # |
| 88 | + # TeamServices |
| 89 | + # FileShare |
| 90 | + SymbolServerType : " " # Used when PublishSymbols = true |
| 91 | + |
| 92 | + # Path to publish symbols |
| 93 | + # |
| 94 | + # The file share that hosts your symbols. This value will be used in the call to `symstore.exe add` as |
| 95 | + # the `/s` parameter. |
| 96 | + SymbolsPath : "" # Used when PublishSymbols = true && SymbolServerType = FileShare |
| 97 | + |
| 98 | + # Compress symbols |
| 99 | + # |
| 100 | + # Compress symbols when publishing to file share. |
| 101 | + CompressSymbols : false # Used when SymbolServerType = FileShare |
| 102 | + |
| 103 | + # endregion |
| 104 | + |
| 105 | +steps: |
| 106 | +- task: PublishSymbols@2 |
| 107 | + displayName: ${{ parameters.DisplayName }} |
| 108 | + inputs: |
| 109 | + SymbolsFolder : ${{ parameters.SymbolsFolder }} |
| 110 | + SearchPattern : ${{ parameters.SearchPattern }} |
| 111 | + IndexSources : ${{ parameters.IndexSources }} |
| 112 | + PublishSymbols : ${{ parameters.PublishSymbols }} |
| 113 | + SymbolServerType : ${{ parameters.SymbolServerType }} |
| 114 | + SymbolsPath : ${{ parameters.SymbolsPath }} |
| 115 | + CompressSymbols : ${{ parameters.CompressSymbols }} |
| 116 | + DetailedLog : ${{ parameters.DetailedLog }} |
| 117 | + TreatNotIndexedAsWarning : ${{ parameters.TreatNotIndexedAsWarning }} |
| 118 | + SymbolsMaximumWaitTime : ${{ parameters.SymbolsMaximumWaitTime }} |
| 119 | + SymbolsProduct : ${{ parameters.SymbolsProduct }} |
| 120 | + SymbolsVersion : ${{ parameters.SymbolsVersion }} |
| 121 | + SymbolsArtifactName : ${{ parameters.SymbolsArtifactName }} |
| 122 | + enabled: ${{ parameters.enabled }} |
| 123 | + condition: ${{ parameters.condition }} |
| 124 | + timeoutInMinutes: ${{ parameters.timeoutInMinutes }} |
| 125 | + continueOnError: ${{ parameters.continueOnError }} |
| 126 | +... |
0 commit comments