DerAlbertCom / GitVersionTools

Build Task for VSTS/TFS together with GitVersion
0 stars 1 forks source link

System.IO.FileNotFoundException... Ensure-TaggedBuild.ps1 #1

Open greg771377 opened 7 years ago

greg771377 commented 7 years ago

Hi Albert,

I'm trying to use your GitVersionTool "Ensure Tags..." in TFS 2017. I put it at first executed task in my TFS build. I've got the following error message indicating that the file Ensure-TaggedBuild.ps1 is not found. Thank you in advance if you could help. Gregory

-- ERROR MESSAGE:

2017-05-16T09:01:01.9251845Z Checking if artifacts directory exists: E:\ITFAgents_work\17\a 2017-05-16T09:01:01.9251845Z Deleting artifacts directory. 2017-05-16T09:01:02.0345504Z Creating artifacts directory. 2017-05-16T09:01:02.0345504Z Checking if test results directory exists: E:\ITFAgents_work\17\TestResults 2017-05-16T09:01:02.0345504Z Deleting test results directory. 2017-05-16T09:01:02.0345504Z Creating test results directory. 2017-05-16T09:01:02.1751637Z Démarrage : Obtenir les sources 2017-05-16T09:01:02.2064111Z Entering GitSourceProvider.PrepareRepositoryAsync 2017-05-16T09:01:02.2064111Z Repository type=TfsGit 2017-05-16T09:01:02.2064111Z localPath=E:\ITFAgents_work\17\s 2017-05-16T09:01:02.2064111Z clean=False 2017-05-16T09:01:02.2064111Z sourceBranch=refs/heads/master 2017-05-16T09:01:02.2064111Z sourceVersion=19c5ae57e4641f2de8ea01e0ed2df6b34ba341e1 2017-05-16T09:01:02.2064111Z Syncing repository: REFAPP (Git) 2017-05-16T09:01:02.2064111Z repository url=http://w-itfbs-1:8080/tfs/CC10_SC/_git/REFAPP 2017-05-16T09:01:02.2064111Z checkoutSubmodules=False 2017-05-16T09:01:02.9094812Z Démarrage de l'extraction... 2017-05-16T09:01:04.2531280Z Extraction de 19c5ae57e4641f2de8ea01e0ed2df6b34ba341e1 vers E:\ITFAgents_work\17\s 2017-05-16T09:01:04.4718612Z Checked out branch refs/heads/master for repository REFAPP at commit 19c5ae57e4641f2de8ea01e0ed2df6b34ba341e1 2017-05-16T09:01:04.4718612Z Leaving GitSourceProvider.PrepareRepositoryAsync 2017-05-16T09:01:05.7686366Z Tâches en cours d'exécution 2017-05-16T09:01:05.7998842Z Démarrage de la tâche : Ensure tagged master branch 2017-05-16T09:01:06.1123602Z Determine arguments contains named parameters or ordinal 2017-05-16T09:01:06.1279840Z Adding ordinal arguments 2017-05-16T09:01:06.1279840Z ScriptName n'indique pas le chemin d'accès complet d'un script PowerShell. 2017-05-16T09:01:06.1904792Z ##[error]System.IO.FileNotFoundException: Fichier de script introuvable : Ensure-TaggedBuild.ps1 2017-05-16T09:01:06.1904792Z ##[error]Nom de fichier : 'Ensure-TaggedBuild.ps1' 2017-05-16T09:01:06.1904792Z ##[error] à Microsoft.TeamFoundation.DistributedTask.Handlers.PowerShellHandler.Execute(ITaskContext context, CancellationToken cancellationToken, Int32 timeoutInMinutes) 2017-05-16T09:01:06.1904792Z ##[error] à Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.RunTask(ITaskContext context, TaskWrapper task, CancellationTokenSource tokenSource) 2017-05-16T09:01:06.3467172Z Tâche de finalisation : ensure-taggedbuild 2017-05-16T09:01:06.4092124Z ##[error]System.Exception: Échec de la tâche ensure-taggedbuild. Ceci a entraîné l'échec de la tâche. Pour plus d'informations, voir les journaux de la tâche. 2017-05-16T09:01:06.4092124Z ##[error] à Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.Run(IJobContext jobContext, IJobRequest job, IJobExtension jobExtension, CancellationTokenSource tokenSource)

DerAlbertCom commented 7 years ago

Did you installed the extension over the Marketplace?

greg771377 commented 7 years ago

Hi,

Yes I did

Gregory

2017-05-16 11:23 GMT+02:00 Albert Weinert notifications@github.com:

Did you installed the extension over the Marketplace?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DerAlbertCom/GitVersionTools/issues/1#issuecomment-301725718, or mute the thread https://github.com/notifications/unsubscribe-auth/AbZYZPbLt0Olznk3M-wkNFanP4c_5oixks5r6WslgaJpZM4NcNAG .

DerAlbertCom commented 7 years ago

That's weird, I've set this up with on a complete new VSTS.

Ensure that the https://marketplace.visualstudio.com/items?itemName=gittools.gitversion Tasks in running before Ensure-TaggedBuild.