Title: Get-BuildVariable: inconsistent commit message detection · Issue #109 · PowerShellOrg/BuildHelpers · GitHub
Open Graph Title: Get-BuildVariable: inconsistent commit message detection · Issue #109 · PowerShellOrg/BuildHelpers
X Title: Get-BuildVariable: inconsistent commit message detection · Issue #109 · PowerShellOrg/BuildHelpers
Description: Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code (https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6ff87275/BuildHelpers/Public/Get-BuildVar...
Open Graph Description: Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code (https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6...
X Description: Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code (https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6...
Opengraph URL: https://github.com/PowerShellOrg/BuildHelpers/issues/109
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-BuildVariable: inconsistent commit message detection","articleBody":"**Build environment**\r\nAzure Devops\r\n\r\n**Tested**\r\nPS5.1/PS6core\r\nbuild stage\r\n\r\n**Issue**\r\nthe commit message detection code (https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6ff87275/BuildHelpers/Public/Get-BuildVariable.ps1#L154) fails on detecting 'BUILD_SOURCEVERSIONMESSAGE'\r\n\r\n**root cause**\r\nAfter testing, the root cause seems to be two-fold:\r\nCause 1:\r\n1. 'SYSTEM_DEFAULTWORKINGDIRECTORY' exists in both the BUILD and RELEASE stages of Azure DevOps. In both cases the default value are the 'artifacts' directories of the used agents (d:\\a\\r1\\a when using hosted agents). So they are directory paths(!)\r\n2. Somehow, PS does not obey the order of the 'switch' command anymore; it 'hits' on 'SYSTEM_DEFAULTWORKINGDIRECTORY' instead of 'BUILD_SOURCEVERSIONMESSAGE'. This is a PS 'thing' and beyond the scope of this issue.\r\n\r\nCause 2:\r\nThe detection does not obey the provided path parameter. I will create separate issue (https://github.com/RamblingCookieMonster/BuildHelpers/issues/110) for this.\r\n\r\n**solution**\r\nThe simplest solution is to use 'AGENT_RELEASEDIRECTORY' instead of 'SYSTEM_DEFAULTWORKINGDIRECTORY'.\r\n\r\n","author":{"url":"https://github.com/peppekerstens","@type":"Person","name":"peppekerstens"},"datePublished":"2019-06-11T13:08:10Z","url":"https://github.com/PowerShellOrg/BuildHelpers/issues/109"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d8d3327e-3e89-2b36-7d48-3f5216893b92 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E23A:103F75:5999C:779F9:6AFD37FD |
| html-safe-nonce | ecd7c4f42804270a56d764c52571be257c6d8c8612a5c59b3bced3b62b65eece |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjNBOjEwM0Y3NTo1OTk5Qzo3NzlGOTo2QUZEMzdGRCIsInZpc2l0b3JfaWQiOiI1Mzg3MzkxMTQyOTA1ODUzOTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 91e3697dfb185a821484c3568ae61a0b64414f7f3fd39050225366d92a2fce31 |
| hovercard-subject-tag | issue:454680416 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShellOrg/BuildHelpers/109/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed3e94bab1e193d10840a9401353cf9f7f79b09dab9cd46c6d244450ac1568cc/PowerShellOrg/BuildHelpers/issues/109 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed3e94bab1e193d10840a9401353cf9f7f79b09dab9cd46c6d244450ac1568cc/PowerShellOrg/BuildHelpers/issues/109 |
| og:image:alt | Build environment Azure Devops Tested PS5.1/PS6core build stage Issue the commit message detection code (https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peppekerstens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShellOrg/BuildHelpers git https://github.com/PowerShellOrg/BuildHelpers.git |
| octolytics-dimension-user_id | 4895314 |
| octolytics-dimension-user_login | PowerShellOrg |
| octolytics-dimension-repository_id | 59748913 |
| octolytics-dimension-repository_nwo | PowerShellOrg/BuildHelpers |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59748913 |
| octolytics-dimension-repository_network_root_nwo | PowerShellOrg/BuildHelpers |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width