Localpath in Assemblies ?


Hello Kine,
i upgraded my Buildtemplate now from Branch NAV2015 to Master because it was totally outdateted.

Now with the new assemblies i get this Error at the moment.

see Attachment: Assemblies error.png

Greetings Erik

file attachments

Closed Jun 29, 2015 at 1:03 PM by kine
Should be solved now in commit 4b324a7637


kine wrote Jun 9, 2015 at 7:04 AM

Hello Erik,
no, it is not about local paths, the paths you see are path of source codes where the exception was raised. Problem is the beginning> Could not find Branch.

I have added functionality to set environment variable TF_BUILD_GITBRANCH when running the powershell. But it seems that the way how I am trying to find the GIT branch name from the BuildDetails fails in your environment. Which version of TFS are you using? Which update? Are you using Update 4?

ErikAnders wrote Jun 11, 2015 at 8:25 PM

Ok, i will check this, thank you.

Yes,it is an Express Version Update 4.

kine wrote Jun 12, 2015 at 6:33 AM

The problem could be connected with a way, how you are using this tool. Problem is that the Invoke PowerShell action is trying to find the GIT branch on which you are building.
1) I expect that you are using GIT as the version control
2) I expect that there is set some branch when the build is triggered. Could you send me the setup of the build, mainly the Source Settings tab?

kine wrote Jun 17, 2015 at 11:29 AM

Another info to find the source of the problems: If you open the build on TFS website, the header should tell something like:

User Name triggered BuildName (projectname) for branch refs/heads/BRANCHNAME (commitid)

Ran for 34 minutes (server - Controller), completed 20 hours ago

And if you open diagnostics tab, there should be line like:

Pull sources from Git repo

Cloning repository 'repoURL' into 'folder'.

xxxx object(s) were downloaded with a total size of xxx MB.

Checking out commit commitID.

Setting the source get version of the build to LG:refs/heads/branch:commitid.

I need to see the LG:refs/.... string there...

ErikAnders wrote Jun 18, 2015 at 1:10 PM

Hello Kine,

thats correct, we dont use GIT.

I have some problems to establish a agile methode of programming in my company and we use IDYN - Object Manager Advanced as a type of "Source Control". Parallel to this we checkin to TFS in a nativ TFS Source. I dont think we will ever use GIT because some of the team refuse TFS source self.

My Idea was to make it work and give you the Template after it works because the mainsteps in the Buildtemplate excluded the Sourcecontroll are the same.

Greetings Erik

kine wrote Jun 18, 2015 at 1:29 PM

Ok, great. Than I need to change the activity to be more generic. Thanks, I will try to change it...

kine wrote Jun 29, 2015 at 1:04 PM

Should be fixed in commit 4b324a7637.

ErikAnders wrote Jun 30, 2015 at 8:23 AM

It works.