Comments (2)
Hi!
Good question on the commit message side. A few options:
- If it exists, read data from XML that tells us how many new commits this build touches. Use git to extract commit message from all, concatenate.
- Assume one-commit granularity. Use git to grab the last commit. Given the functionality you describe, this route might be a poor choice.
- Give up : P Or, if the first bullet isn't an option, and the second bullet isn't reflective of the actual commit messages (i.e. it would only include 1 even if more were included), assume no data is better than bad data, return $null for this.
For the XML side, feel free to add handling to Get-BuildVariables that reads from that XML if it's present.
Cheers!
from buildhelpers.
Seems Teamcity does not pass a lot of variables by design to the build agent. (not even in the property file). It does not even pass along the server url in a variable otherwise I could use the API to get that information.
In other words You need to configure you build to pass along variables to the agent for use of BuildHelpers.
Don't know if that matches with the philosophy behind BuildHelpers?
from buildhelpers.
Related Issues (20)
- If you're going to just copy my module into yours .... HOT 1
- Get-BuildVariable: inconsistent commit message detection HOT 3
- Get-BuildVariable: inconsistent PATH parameter usage HOT 11
- Add build checks in Azure Pipelines
- Add support for -Credential <pscredential> in Get-NextNugetPackageVersion and Find-Nugetpackage
- Import-Metadata should be exported
- Strange error when using Set-ModuleFunctions during AppVeyor build HOT 2
- BuildHelpers grabs the wrong variable GitLab CI HOT 1
- Publish a module locally feature request HOT 1
- Get-Buildvariable overwrites CommitMessage on switch default HOT 2
- Include RepoRoot as a BH variable
- Invoke-Git : warning: refname 'x' is ambiguous. HOT 3
- Set-ShieldsIoBadge replaces whole line (until last ')') HOT 1
- Set-BuildEnvironment fails when git is not installed
- Error in Azure Pipeline when Get-ProjectName returns multiple items
- Get-ProjectName fails when alias `git` exists HOT 2
- Return all variables with matching prefix
- Make all environment variables upper-cased?
- Update Set-BuildEnvironment -VariableNamePrefix validation regex HOT 1
- Feature Request: Allow for specifying custom build environment variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildhelpers.