Is there a way to log who created a force build in CC.Net? - cruisecontrol.net

When someone creates a force build on CC.Net dashboard, is there a way to log who created the build (a name of a person/dept) or a field entry for that? Any pointers please would be appreciated.

Anything that is logged in the "super build results" file...can be displayed, if you write a custom .xsl for it, or edit an existing .xsl.
To see the build log, click on "View Log File" from the CCNET project page.
See if the piece of information you're after is in the file.
If so, then you can "fish" for that piece of information.
Here is an example of editing an existing .xsl file....and "fishing" for the svn-revision number.
It's not exactly what you're looking for, but it can be a basic "how to".
http://www.richard-banks.org/2007/01/add-subversion-revision-to.html

According to the ccnet docs it's the property: CCNetUser
http://cruisecontrolnet.org/projects/ccnet/wiki/Integration_Properties
So if you're using Nant you could echo ${CCNetUser} to see who forced the build.
That's only valid if security is on. If security is not on(most likely it's not if anyone can force the build) you could present the user with a textbox or dropdown to enter/select their username. See http://cruisecontrolnet.org/projects/ccnet/wiki/Parameters for how to do that. Of course it's then up to the user whether they enter the correct information.

Related

Create two edit button with different settings

I've created a version tracking that will show all the edited document inside view. What if I want to make all document be draft at the same time, and during that, document can't be edit. And after I click save, all draft document will be saved at the same time.
Edit 1
I have one more question when I do version tracking, how can I make all response document cannot be edit? only current document can be edit?
UPDATE QUESTION
Currently, I am using version tracking to show all list with all edit document. So for now, every time I click EDIT, it will show all history of updated.
So I want create a situation where I have 2 edit option which is EDIT and PC Specification. I want to set PC Specification after edit document, it updated all history under version tracking, but for EDIT I don't want it update under version tracking. Because, for EDIT function, it only for edit one or two information BUT for PC Specification, it is to update all information. For example, I have 3 documents inside the "Computer" view.
When I open one document, it will show document details. On top menu, I have two buttons which are Edit and Close Windows. So can I add one more toolbar? Which is PC Spec as below?
So I will click the PC Spec button on the toolbar then the documents will open as a new document with same document information. Same as edit function. After I click save, it overwrite document + show edit history
For another situation where I click EDIT, same as PC Spec but after I click save, it overwrite document only.
As shown below, the history is when document edit using PC Spec only.
Another question, I have "Archived" view. How can I show only history of document inside "Archived" view?
Hope you guys can understand this. Please ask me anything if you not understand. Any help will be appreciated. Thanks! :)
Regarding your second question, to make all response documents non-editable, you will have to
Give your regular users Author access instead of Editor access in the database's Access Control List and assign them a role, which I'll call "AppUsers".
Give yourself and anyone else who will be responsible for managing the app a role which I'll call "AppAdmins".
Add a hidden computed field with type "Authors" to the form and set the initial value formula to
#If(#IsResponseDoc;"[AppAdmins]";"[AppUsers]":"[AppAdmins]")
Note that this will not have any effect on existing documents until you refresh and re-save them.
Then, you're going to have to hope that automatic versioning refreshes the documents. I'm not sure if it does or does not. If it does not, then you're probably going to have to give up on using the native versioning and write your own version using LotusScript. As I recall, that's what was done in the standard Lotus document library template, because the native versioning is pretty limited in what it can do.
As for your first question, I'm sorry but I really don't understand what you're asking. I can't tell in some parts whether you are telling us what you have already done, or what you want to do. Here on StackOverflow, the best way to get useful answers is to show us very clearly what you have tried, tell us what happens, and tell us what you thought should have happened instead. This is a place for helping you fix your code, not a place to get tutorials that amount to explicit instructions on how to write your code in the first place.

Find Shelveset of Another User

When I follow instructions to find a shelveset, I'm given a list of all my personal shelvesets. But what I want is to view and unshelve from another user's selection. Other developers can simply change the user to whoever they want. No such option exists for me.
I've told my TFS admin about this issue. The response I got was that "We haven’t locked anything down, you should be able to view others' shelvesets." Nevertheless, I can't see others' shelvesets.
What could be causing this? What specific issue or permission(s) should the TFS admin check to confirm "we havn't locked anything down?"
I also had this issue, and typing in other names didn't yield any results.
Instead I found that if I search for * then I can see all shelfsets and their name, and I can hover over the name to see the owner.
You should be able to simply type in a different user name in the Find Shelvesets window and hit Enter (if that's not working whats the error message):
There is a UserVoice idea for improvements to the Visual Studio Find Shelvesets Search box UI. Suggest you up vote that idea and add a comment regarding your specific issue. That might get some action from Microsoft.
In my current project environment (VS2015/TFS2013) you have to provide an exact user/AD account name. If you try a partial name you get an error msg
Could not retrieve shelvesets: TF14045: The identity calvert is not a recognized identity.
A wildcard character * works but generates too many results and you can't filter them.
The wildcard does not work when ot combined with a fragment; "calvert*" gives an error msg
Could not retrieve shelvesets: TF10131: The shelveset name calvert* contains more than 64 characters, contains one of the following characters: "/:<>\|*?; or ends with a space. Type a valid name and try again.
All in all a poor experience.

Change template html in sharepoint discussion reply box

I have a wss 3.0 install which needs an "anonymous" discussion board. I can modify the view so no usernames are displayed, however when I click on "reply", the message I'm replying to shows up in the rich text box with the username of the previous poster.
Is there a way to remove that username? or Remove the previous posted text altogether? I've found the schema.xml file with lots of relevant info under the ..12\TEMPLATE\FEATURES\DiscussionsList\Discuss folder, but not sure if this is the easiest way to adjust this setting.
Any comments appreciated.
Best practice says that you should always create a custom list definition instead of trying to modify the OOB assets.
The easiest way to do this is take a copy of the 12\TEMPLATE\FEATURES\DiscussionsList\Discuss folder, modify the feature Ids and names so that its unique. Then your free to change the schema render template (i.e view schema) and modify the edit and display forms.
If you need to modfify the actual entry form you may consider a custom control template : http://msdn.microsoft.com/en-us/library/aa543922.aspx
Custom list definition : http://msdn.microsoft.com/en-us/library/ms466023.aspx
Agrothe,
I have a similar requirement (hide or mask the author inside the reply thread.). What exactly inside of schema.xml do you think will allow you to do accomplish that?
Not sure if the list forms are exposed to xslt. If so, then perhaps this is another approach.
FWIW, the other solutions I have investigated:
(1) A custom event handler. Unfortunately, I can't pinpoint which event fires when someone click reply.
(2) Anonymous blog comments (http://blogs.msdn.com/sharepoint/archive/2007/08/06/anonymous-comment-feature-for-sharepoint-blog-now-available-on-codeplex.aspx).
(3) the other thing I am considering, is to introduce a global anonymous active directory login, which users can use to post anonymously. Not ideal, but for the amount of time I have spent researching a solution, might be my last hope.

SharePoint 2007 Versions.aspx

I need to modify the versions.aspx page... No idea how to nor do I know if this is something I should do?!? The root problem is on the history of our document we have effective and termination dates. Termination dates are kinda of the issue as they are not reflective in version history (when you look at the versions.aspx page). They are implied... but our users would like to see the termination date show up. I figured I could calculate it but I would need to update the versions.aspx page (haven't done anything like this before -- new to sharepoint dev). Alternatively I could create a new page to show history the way they want it and disable the ECB for version history... any advice or help?
Its is not recommended to touch any pages that are used by SharePoint (that is not supported by MS). You can fall back to second option you said and go ahead and create a new Page that will do what you want, you might need to do JavaScript hack to make the ECB point to the new URL.

Modfification history in webdash board unseen?

I am using my ccnet which is configured with the clear case
and everything is working fine as expected,but i am unable to see
anything in the "ViewProjectModificationHistory".whenever i click this
tab,i see a message which tells that :"No history Data found, make
sure you use the modificationHistory Publisher for this
project".Infact i had added under the tag.And to my
suprise,when i open this same link in the other persons system,it
opens well and fine and see all the modification history recorded.
So can anyone please tell me what could be this issue and how can it
be resolved?
Thanks and regards
Maddy
You should check your build history file. This will contain the XML data that feeds these reports. In particular, check the modifications/modification nodes to see if they are populated or not.
My guess is that the modifications are not there - so there may be nothing to display.
Another gotcha I have caught myself doing is not actually checking that there was in fact changes committed since the last time I built a project.

Resources