Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate _BuildInfo.xml file after asserting version numbers #20

Open
gep13 opened this issue Mar 14, 2022 · 2 comments
Open

Generate _BuildInfo.xml file after asserting version numbers #20

gep13 opened this issue Mar 14, 2022 · 2 comments
Labels
Feature Issues that introduce new functionality to the project, instead of updating existing functionality

Comments

@gep13
Copy link
Member

gep13 commented Mar 14, 2022

One of the artifacts created by UppercuT was the _BuildInfo.xml file, which contains all of the asserted version numbers, used as part of the build.

This is useful information to have, and we should look to generate a similar file during the execution of the Chocolatey.Cake.Recipe build, which can then be uploaded as an artifact into the CI system being used.

@gep13 gep13 added the Feature Issues that introduce new functionality to the project, instead of updating existing functionality label Mar 14, 2022
@gep13 gep13 added this to the 0.3.0 milestone Mar 14, 2022
@gep13
Copy link
Member Author

gep13 commented Mar 14, 2022

An example of the contents of this file is as follows:

<?xml version="1.0" ?>
<buildInfo>
  <projectName>chocolatey</projectName>
  <companyName>Chocolatey Software, Inc.</companyName>
  <versionMajor>0</versionMajor>
  <versionMinor>12</versionMinor>
  <versionPatch>1</versionPatch>
  <buildNumber>0</buildNumber>
  <revision>0.12.1</revision>
  <revisionhash>0.12.1</revisionhash>
  <version>0.12.1.0</version>
  <versionProduct>0.12.1-0.12.1</versionProduct>
  <repositoryPath>https://github.com/chocolatey/choco</repositoryPath>
  <microsoftNetFramework>net-4.0</microsoftNetFramework>
  <msbuildConfiguration>ReleaseOfficial</msbuildConfiguration>
  <msbuildPlatform>Any CPU</msbuildPlatform>
  <builtWith>UppercuT v. 1.4.2.0</builtWith>
</buildInfo>

@gep13 gep13 modified the milestones: 0.3.0, Future Mar 17, 2022
@gep13
Copy link
Member Author

gep13 commented May 9, 2022

This is made up from:

      <![CDATA[<?xml version="1.0" ?>
<buildInfo>
  <projectName>${project.name}</projectName>
  <companyName>${string::replace(string::replace(company.name,'&amp;','&'),'&','&amp;')}</companyName>
  <versionMajor>${version.major}</versionMajor>
  <versionMinor>${version.minor}</versionMinor>
  <versionPatch>${version.patch}</versionPatch>
  <buildNumber>${version.build}</buildNumber>
  <revision>${version.revision}</revision>
  <revisionhash>${version.hash}</revisionhash>
  <version>${assembly.version.full}</version>
  <versionProduct>${version.product}</versionProduct>
  <repositoryPath>${repository.path}</repositoryPath>
  <microsoftNetFramework>${microsoft.framework}</microsoftNetFramework>
  <msbuildConfiguration>${msbuild.configuration}</msbuildConfiguration>
  <msbuildPlatform>${msbuild.platform}</msbuildPlatform>
  <builtWith>UppercuT v. ${version.uppercut}</builtWith>
</buildInfo>]]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Issues that introduce new functionality to the project, instead of updating existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant