Is it possible to output and rename build artifacts from the TeamCity checkout directory (that are not archives)?

前端 未结 3 475
一生所求
一生所求 2021-02-12 22:25

I have gone through the documentation for TeamCity on build artifact outputs

(https://confluence.jetbrains.com/display/TCD8/Configuring+General+Settings#ConfiguringGene

相关标签:
3条回答
  • 2021-02-12 22:45

    You can use the following thing when you are using octopack with msbuild to create the nuget package.

    The command line parameter /p:OctoPackAppendToPackageId=foo adds foo to your nuget package name. Docs (under publishing)

    Example:

    Without parameter: abc.nupkg

    With parameter: abc.foo.nupkg

    0 讨论(0)
  • 2021-02-12 22:46
    1. Add command line step which will rename the artifact
    ren Release\oldname.exe newname_%build.number%.exe
    
    1. Define artifact as path to the renamed file.
    newname_%build.number%.exe
    
    0 讨论(0)
  • 2021-02-12 22:49

    It is not possible to rename build artifacts using TeamCity. The needed .exe file name should be configured inside your build script.

    0 讨论(0)
提交回复
热议问题