-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Description
Release 3.6.2 introduced a bug - environment variable GitVersion_NuGetVersion seems not to be set.
Below is the output from GitVersion 3.6.2:
2016-08-02T07:13:45.4829011Z Set workingFolder to default: C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.2
2016-08-02T07:13:47.0791670Z Executing the powershell script: C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.2\GitVersion.ps1
2016-08-02T07:13:53.5779470Z Current Directory: C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.2
2016-08-02T07:13:53.5779470Z Sources Directory: D:\VSTS\work\1\s
2016-08-02T07:13:53.6716837Z Invoking GitVersion with D:\VSTS\work\1\s /output buildserver /nofetch /updateassemblyinfo true
2016-08-02T07:13:53.7498061Z C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.2\GitVersion.exe D:\VSTS\work\1\s /output buildserver /nofetch /updateassemblyinfo true
2016-08-02T07:13:54.3244406Z INFO [08/02/16 7:13:54:26] Working directory: D:\VSTS\work\1\s
2016-08-02T07:13:54.3244406Z INFO [08/02/16 7:13:54:29] IsDynamicGitRepository: False
2016-08-02T07:13:54.4374027Z INFO [08/02/16 7:13:54:43] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-08-02T07:13:54.4650616Z INFO [08/02/16 7:13:54:44] Running on Windows.
2016-08-02T07:13:54.4806954Z INFO [08/02/16 7:13:54:48] Applicable build agent found: 'VsoAgent'.
2016-08-02T07:13:54.4806954Z INFO [08/02/16 7:13:54:48] Branch from build environment: refs/heads/feature/delivery-notes
2016-08-02T07:14:09.2753402Z INFO [08/02/16 7:14:09:27] IsDynamicGitRepository: False
2016-08-02T07:14:09.2753402Z INFO [08/02/16 7:14:09:27] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-08-02T07:14:09.2753402Z INFO [08/02/16 7:14:09:27] Project root is: D:\VSTS\work\1\s
2016-08-02T07:14:09.2753402Z INFO [08/02/16 7:14:09:27] DotGit directory is: D:\VSTS\work\1\s\.git
2016-08-02T07:14:09.3388773Z INFO [08/02/16 7:14:09:33] IsDynamicGitRepository: False
2016-08-02T07:14:09.3388773Z INFO [08/02/16 7:14:09:33] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-08-02T07:14:09.3696022Z INFO [08/02/16 7:14:09:36] Begin: Loading version variables from disk cache
2016-08-02T07:14:09.3696022Z INFO [08/02/16 7:14:09:36] Cache file D:\VSTS\work\1\s\.git\gitversion_cache\A67810B7AF027CA8040D3128CA3DC4D155F870AE.yml not found.
2016-08-02T07:14:09.3696022Z INFO [08/02/16 7:14:09:36] End: Loading version variables from disk cache (Took: 0.00ms)
2016-08-02T07:14:09.3696022Z INFO [08/02/16 7:14:09:36] IsDynamicGitRepository: False
2016-08-02T07:14:09.3893859Z INFO [08/02/16 7:14:09:36] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-08-02T07:14:09.9940728Z INFO [08/02/16 7:14:09:96] Using latest commit on specified branch
2016-08-02T07:14:10.0139141Z INFO [08/02/16 7:14:10:01] Begin: Attempting to inherit branch configuration from parent branch
2016-08-02T07:14:10.1356386Z INFO [08/02/16 7:14:10:12] Begin: Finding branch source
2016-08-02T07:14:10.3675414Z INFO [08/02/16 7:14:10:36] Begin: Found merge base of 5f04c4150df438159bc798e71138921d0ec61cb0 against develop
2016-08-02T07:14:10.6301978Z INFO [08/02/16 7:14:10:63] End: Found merge base of 5f04c4150df438159bc798e71138921d0ec61cb0 against develop (Took: 262.66ms)
2016-08-02T07:14:10.6554984Z INFO [08/02/16 7:14:10:65] Begin: Found merge base of cfc30e3664678644a14f73695a9257912cba4892 against master
2016-08-02T07:14:10.6554984Z INFO [08/02/16 7:14:10:65] End: Found merge base of cfc30e3664678644a14f73695a9257912cba4892 against master (Took: 0.00ms)
2016-08-02T07:14:10.7124416Z INFO [08/02/16 7:14:10:71] End: Finding branch source (Took: 590.15ms)
2016-08-02T07:14:10.7245192Z INFO [08/02/16 7:14:10:72] Begin: Getting branches containing the commit '5f04c4150df438159bc798e71138921d0ec61cb0'.
2016-08-02T07:14:10.7245192Z INFO [08/02/16 7:14:10:72] Trying to find direct branches.
2016-08-02T07:14:10.7424854Z INFO [08/02/16 7:14:10:74] Direct branch found: 'develop'.
2016-08-02T07:14:10.7424854Z INFO [08/02/16 7:14:10:74] End: Getting branches containing the commit '5f04c4150df438159bc798e71138921d0ec61cb0'. (Took: 17.97ms)
2016-08-02T07:14:10.7557013Z INFO [08/02/16 7:14:10:74] Found possible parent branches: develop
2016-08-02T07:14:10.7557013Z INFO [08/02/16 7:14:10:75] End: Attempting to inherit branch configuration from parent branch (Took: 741.79ms)
2016-08-02T07:14:10.7878855Z INFO [08/02/16 7:14:10:77] Running against branch: feature/delivery-notes (1b29128584e0f414191b74b96dd9f57ed3907809)
2016-08-02T07:14:10.8185520Z INFO [08/02/16 7:14:10:81] Begin: Calculating base versions
2016-08-02T07:14:15.0548776Z INFO [08/02/16 7:14:15:05] Fallback base version: 0.1.0 with commit count source 57fd3b8d07e0080d40fccdc57539097918e473fe
2016-08-02T07:14:23.1392620Z INFO [08/02/16 7:14:23:12] Base version used: Fallback base version: 0.1.0 with commit count source 57fd3b8d07e0080d40fccdc57539097918e473fe
2016-08-02T07:14:23.1392620Z INFO [08/02/16 7:14:23:13] End: Calculating base versions (Took: 12,320.71ms)
2016-08-02T07:14:23.1868996Z INFO [08/02/16 7:14:23:18] Skipping version increment
2016-08-02T07:14:23.2017670Z INFO [08/02/16 7:14:23:20] Using branch name to calculate version tag
2016-08-02T07:14:24.5641249Z INFO [08/02/16 7:14:24:56] 3127 commits found between 57fd3b8d07e0080d40fccdc57539097918e473fe and 1b29128584e0f414191b74b96dd9f57ed3907809
2016-08-02T07:14:24.6272559Z INFO [08/02/16 7:14:24:62] Begin: Creating dictionary
2016-08-02T07:14:24.6577193Z INFO [08/02/16 7:14:24:65] End: Creating dictionary (Took: 30.46ms)
2016-08-02T07:14:24.6577193Z INFO [08/02/16 7:14:24:65] Begin: Storing version variables to cache file D:\VSTS\work\1\s\.git\gitversion_cache\A67810B7AF027CA8040D3128CA3DC4D155F870AE.yml
2016-08-02T07:14:24.8113593Z INFO [08/02/16 7:14:24:81] End: Storing version variables to cache file D:\VSTS\work\1\s\.git\gitversion_cache\A67810B7AF027CA8040D3128CA3DC4D155F870AE.yml (Took: 153.64ms)
2016-08-02T07:14:24.8113593Z INFO [08/02/16 7:14:24:81] Applicable build agent found: 'VsoAgent'.
2016-08-02T07:14:24.8292139Z Executing GenerateSetVersionMessage for 'VsoAgent'.
2016-08-02T07:14:28.0195650Z Executing GenerateBuildLogOutput for 'VsoAgent'.
2016-08-02T07:14:28.0195650Z INFO [08/02/16 7:14:24:87] Updating assembly info files
2016-08-02T07:14:28.0195650Z INFO [08/02/16 7:14:27:34] Found 29 files
The saved cache file contains correct value for NuGetVersion however the build fails later on with error '$(GitVersion_NuGetVersion)' is not a valid version string. suggesting the variable doesn't exist and the text of the expression is being used..
Below is the successful build using GitVersion 3.6.1:
2016-07-24T22:05:28.5471795Z Set workingFolder to default: C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.1
2016-07-24T22:05:29.0780096Z Executing the powershell script: C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.1\GitVersion.ps1
2016-07-24T22:05:30.1420297Z Current Directory: C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.1
2016-07-24T22:05:30.1420297Z Sources Directory: D:\VSTS\work\1\s
2016-07-24T22:05:30.1845033Z Invoking GitVersion with D:\VSTS\work\1\s /output buildserver /nofetch /updateassemblyinfo true
2016-07-24T22:05:30.2030424Z C:\Program Files\VSTS Agent\tasks\GitVersion\3.6.1\GitVersion.exe D:\VSTS\work\1\s /output buildserver /nofetch /updateassemblyinfo true
2016-07-24T22:05:30.5285638Z INFO [07/24/16 22:05:30:51] Working directory: D:\VSTS\work\1\s
2016-07-24T22:05:30.5285638Z INFO [07/24/16 22:05:30:52] IsDynamicGitRepository: False
2016-07-24T22:05:30.7205580Z INFO [07/24/16 22:05:30:68] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-07-24T22:05:30.7312758Z INFO [07/24/16 22:05:30:70] Running on Windows.
2016-07-24T22:05:30.7312758Z INFO [07/24/16 22:05:30:72] Applicable build agent found: 'VsoAgent'.
2016-07-24T22:05:30.7312758Z INFO [07/24/16 22:05:30:72] Branch from build environment: refs/heads/feature/Weekly_Rota
2016-07-24T22:05:41.5218254Z INFO [07/24/16 22:05:41:50] IsDynamicGitRepository: False
2016-07-24T22:05:41.5218254Z INFO [07/24/16 22:05:41:50] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-07-24T22:05:41.5218254Z INFO [07/24/16 22:05:41:50] Project root is: D:\VSTS\work\1\s
2016-07-24T22:05:41.5218254Z INFO [07/24/16 22:05:41:50] DotGit directory is: D:\VSTS\work\1\s\.git
2016-07-24T22:05:41.6115794Z INFO [07/24/16 22:05:41:61] IsDynamicGitRepository: False
2016-07-24T22:05:41.6115794Z INFO [07/24/16 22:05:41:61] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-07-24T22:05:41.6584801Z INFO [07/24/16 22:05:41:64] Begin: Loading version variables from disk cache
2016-07-24T22:05:41.6584801Z INFO [07/24/16 22:05:41:65] Cache file D:\VSTS\work\1\s\.git\gitversion_cache\096A56369CDDCB13514EB42ADCF6E3ED479A10DA.yml not found.
2016-07-24T22:05:41.6584801Z INFO [07/24/16 22:05:41:65] End: Loading version variables from disk cache (Took: 14.57ms)
2016-07-24T22:05:41.6584801Z INFO [07/24/16 22:05:41:65] IsDynamicGitRepository: False
2016-07-24T22:05:41.6584801Z INFO [07/24/16 22:05:41:65] Returning Project Root from DotGitDirectory: D:\VSTS\work\1\s\.git - D:\VSTS\work\1\s
2016-07-24T22:05:42.1737584Z INFO [07/24/16 22:05:42:17] Using latest commit on specified branch
2016-07-24T22:05:42.2214217Z INFO [07/24/16 22:05:42:22] Begin: Attempting to inherit branch configuration from parent branch
2016-07-24T22:05:42.2662797Z INFO [07/24/16 22:05:42:26] Begin: Finding branch source
2016-07-24T22:05:42.4362179Z INFO [07/24/16 22:05:42:42] Begin: Found merge base of 5f04c4150df438159bc798e71138921d0ec61cb0 against develop
2016-07-24T22:05:42.5005336Z INFO [07/24/16 22:05:42:50] End: Found merge base of 5f04c4150df438159bc798e71138921d0ec61cb0 against develop (Took: 76.79ms)
2016-07-24T22:05:42.5005336Z INFO [07/24/16 22:05:42:50] Begin: Found merge base of cfc30e3664678644a14f73695a9257912cba4892 against master
2016-07-24T22:05:42.5005336Z INFO [07/24/16 22:05:42:50] End: Found merge base of cfc30e3664678644a14f73695a9257912cba4892 against master (Took: 0.00ms)
2016-07-24T22:05:42.5300353Z INFO [07/24/16 22:05:42:53] End: Finding branch source (Took: 263.76ms)
2016-07-24T22:05:42.5499107Z INFO [07/24/16 22:05:42:54] Begin: Getting branches containing the commit '5f04c4150df438159bc798e71138921d0ec61cb0'.
2016-07-24T22:05:42.5613745Z INFO [07/24/16 22:05:42:54] Trying to find direct branches.
2016-07-24T22:05:42.5613745Z INFO [07/24/16 22:05:42:56] Direct branch found: 'develop'.
2016-07-24T22:05:42.5613745Z INFO [07/24/16 22:05:42:56] End: Getting branches containing the commit '5f04c4150df438159bc798e71138921d0ec61cb0'. (Took: 11.46ms)
2016-07-24T22:05:42.5799115Z INFO [07/24/16 22:05:42:57] Found possible parent branches: develop
2016-07-24T22:05:42.5799115Z INFO [07/24/16 22:05:42:57] End: Attempting to inherit branch configuration from parent branch (Took: 358.49ms)
2016-07-24T22:05:42.5924679Z INFO [07/24/16 22:05:42:59] Running against branch: feature/Weekly_Rota (567c2733cf1f81e61318072995b9069f7678409b)
2016-07-24T22:05:42.6237188Z INFO [07/24/16 22:05:42:62] Begin: Calculating base versions
2016-07-24T22:05:46.7487173Z INFO [07/24/16 22:05:46:73] Fallback base version: 0.1.0 with commit count source 57fd3b8d07e0080d40fccdc57539097918e473fe
2016-07-24T22:05:54.6756652Z INFO [07/24/16 22:05:54:67] Base version used: Fallback base version: 0.1.0 with commit count source 57fd3b8d07e0080d40fccdc57539097918e473fe
2016-07-24T22:05:54.6756652Z INFO [07/24/16 22:05:54:67] End: Calculating base versions (Took: 12,051.95ms)
2016-07-24T22:05:54.7337772Z INFO [07/24/16 22:05:54:71] Skipping version increment
2016-07-24T22:05:54.7337772Z INFO [07/24/16 22:05:54:73] Using branch name to calculate version tag
2016-07-24T22:05:56.0312932Z INFO [07/24/16 22:05:56:03] 3150 commits found between 57fd3b8d07e0080d40fccdc57539097918e473fe and 567c2733cf1f81e61318072995b9069f7678409b
2016-07-24T22:05:56.1080955Z INFO [07/24/16 22:05:56:09] Begin: Creating dictionary
2016-07-24T22:05:56.1261212Z INFO [07/24/16 22:05:56:12] End: Creating dictionary (Took: 29.68ms)
2016-07-24T22:05:56.1393986Z INFO [07/24/16 22:05:56:13] Begin: Storing version variables to cache file D:\VSTS\work\1\s\.git\gitversion_cache\096A56369CDDCB13514EB42ADCF6E3ED479A10DA.yml
2016-07-24T22:05:56.3277372Z INFO [07/24/16 22:05:56:32] End: Storing version variables to cache file D:\VSTS\work\1\s\.git\gitversion_cache\096A56369CDDCB13514EB42ADCF6E3ED479A10DA.yml (Took: 188.34ms)
2016-07-24T22:05:56.3277372Z INFO [07/24/16 22:05:56:32] Applicable build agent found: 'VsoAgent'.
2016-07-24T22:05:56.3432264Z Executing GenerateSetVersionMessage for 'VsoAgent'.
2016-07-24T22:05:58.9253177Z Executing GenerateBuildLogOutput for 'VsoAgent'.
2016-07-24T22:05:58.9253177Z INFO [07/24/16 22:05:56:37] Updating assembly info files
2016-07-24T22:05:58.9253177Z INFO [07/24/16 22:05:57:61] Found 29 files
No changes to the build configuration were made - the only difference is a GitVersion upgrade from 3.6.1 to 3.6.2
Metadata
Metadata
Assignees
Labels
No labels