changeset

Error with changeSet in jenkins pipeline (Error:java.io.NotSerializableException: hudson.plugins.git.GitChangeSetList)

£可爱£侵袭症+ 提交于 2019-12-05 03:09:25
I have this error: java.io.NotSerializableException: hudson.plugins.git.GitChangeSetList when ChangeSet!=null but the strange is that the error ocurred when updating this plugin: Pipeline Shared Groovy Libraries, before this work good, i use jenkins v 2.21 and pipeline 2.4 and my code is the next: def changeLogSets = currentBuild.rawBuild.changeSets for (int i = 0; i < changeLogSets.size(); i++) { def entries = changeLogSets[i].items for (int j = 0; j < entries.length; j++) { def entry = entries[j] echo "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}" def

Given a TFS changeset, how can I find what work item(s) it is linked to?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 17:25:28
It's easy to see what changesets are linked to a given work item. But is it possible, given a changeset, to find out what work item(s) it is linked to? If you have the changeset number then in TFS explorer in VS press CRTL + G and provide the changeset number and click OK. That will bring the change set in team explorer. Then you can click on a folder/file and select view history which will show you the work items related to it. See view changesets for more information. Also, check out this MSDN blog post Listing the work items associated with changesets for a path (From my Visual Studio 2017)

View a list of all files changed as part of a Workitem in TFS

假装没事ソ 提交于 2019-12-04 10:12:21
If I am checking in code against a workitem, on each check in a changeset is created. I can view the links tab of the workitem and then view each changeset to see the files that have been changed. Over time, however, the workitem may end up with many changesets, and finding all files that have been changed can be a very time consuming and painful process. Is there any way of finding out all files changed as part of a workitem, without viewing each changeset individually? e-mre I needed the exact same thing and I wrote a TFS utility for myself, using TFS API. It allows you to see all changes a

How can I store the new CHANGESET number in my source code after I check in?

情到浓时终转凉″ 提交于 2019-12-04 09:59:07
In SVN you can use some keyword expansion to put your revision number inside source files. I find this particularly useful on SQL scripts. Using TFS2010, how can I put the changeset number inside a source file ? If you really must insert the current changeset number in a file, you can use the Keyword Substitution Check-in Policy . 来源: https://stackoverflow.com/questions/10247305/how-can-i-store-the-new-changeset-number-in-my-source-code-after-i-check-in

A way to find out all affected files of a workItem or group of chgsets in TFS 2008?

匆匆过客 提交于 2019-12-04 06:29:48
I'm trying to figure out a way to find out which files were affected by a work item in TFS 2008. I realize that this is a duplication of a question already asked by someone else here - View a list of all files changed as part of a Workitem in TFS but it went unanswered and I've been, off and on, looking for this for a while. I understand can view the links tab of the work item and then view each changeset to see the files that have been changed. But, the work item very likely will end up with many changesets linked to it, and I would like to review the files modified as part of the work item,

How can I open a single changeset in TFS from within Visual Studio

只谈情不闲聊 提交于 2019-12-03 10:34:35
问题 Someone emailed me a TFS changeset ID and now I am trying to open this single changeset. Is there an easy was to do this from within Visual Studio (VS 2008 if it matters)? 回答1: In the Source Control Explorer (View -> Other Windows -> Source Control Explorer): Right click on the folder you want to grab Click Get Specific Version Change the dropdown from "Latest Version" to " Changeset " Find your changeset on via the browse (...) button. Change to search to changeset number Just select the

How can I open a single changeset in TFS from within Visual Studio

白昼怎懂夜的黑 提交于 2019-12-03 01:07:26
Someone emailed me a TFS changeset ID and now I am trying to open this single changeset. Is there an easy was to do this from within Visual Studio (VS 2008 if it matters)? In the Source Control Explorer (View -> Other Windows -> Source Control Explorer): Right click on the folder you want to grab Click Get Specific Version Change the dropdown from "Latest Version" to " Changeset " Find your changeset on via the browse (...) button. Change to search to changeset number Just select the result and hit ok. Alternatively, if you want to see what changes were in that changeset... Go to the same

How can I extract all changed files of a changeset in Mercurial?

白昼怎懂夜的黑 提交于 2019-12-02 19:43:53
Until recently we have been using SVN for all projects of our web studio, and there is a very convenient feature present in several clients like Subversive and TortoiseSVN that can extract all files that have been changed in a certain revision. Is there a way to do it in Mercurial? I don't care if it's done via a GUI or a command line, it's just very convenient to have a set of files that have been changed in a certain changeset. P.S. I must have put it wrong the first time. I need more than just a list of files, it would be great to have all the files exported to some other folder. Building

How and where does TFS 2008 / TFS 2010 store changesets?

流过昼夜 提交于 2019-12-01 16:09:36
问题 I am attempting to understand how TFS 2008 (and 2010 if it's different) store and communicate details of a set of changes in a changeset. Now when I commit to a Subversion hosted project, the client sends diffs to the server. So if I have added a file and changed a few lines in another it sends something like "Added file A.txt, put 2 lines "A" "B" into B.txt" . This means I can back out a revision as diffs are nicely reversible - "Delete file A.txt and take out two lines from B.txt". Pretty

How to merge TFS change sets programmatically?

那年仲夏 提交于 2019-12-01 04:45:16
I know how to merge a change set in TFS 2010 using the command line command "tf merge". Is there a way I can do this in C# with code. I want to merge specific change sets only (cherry pick), one at a time. This is roughly how you would do it if you were working with the 2010 or 2012 TFS object models. Let me know if you have any questions. // Get a reference to yourTeam Foundation Server. TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(new Uri("http://<yourserver>:8080/tfs/<yourcollection> ")); // Get a reference to Version Control. VersionControlServer versionControl = tpc