VSTS Hub events - tfs

I have added a new hub to TFS 2017 (on-premise) under the Build & Release tab. Can a hub attach/subscribe to events similar to the Build Summary for a particular build definition and the Release Summary for a particular release definition such as when builds/releases are queued/completed?
I have looked through the vss-web-extension-sdk and the "VSS/Events/Service" appear to only attach to PageEvents.

You can’t attach/subscribe to the build or release in a general hub extension. You can do it in build/release summary extension.
There are samples of VSTS extension: vsts-extension-samples

Related

JMeter CI/CD process in TFS 2017

I have to create CI/CD pipeline in TFS 2017 to execute JMeter performance test.
I've created a build definition according to the tutorial and a release definition (I have used created build definition as an artifact for the release definition).
After trying to create new release I get the following message: Versions could not be loaded for all artifact sources. This could be due to inaccessible artifact source or artifact source has been deleted or no versions are available.
Could someone help to fix it? Thank you in advance 😊
The error you are getting because it couldn’t access the artifact source anymore due to some reason.
May like there are not available builds (deleted by retention policy)
or your build definition renamed.
Make sure your build definition has successful builds, and it has
'Publish Artifact: drop' as the last task (Try both drop to the
server and a file share).
Another place you need to pay attention to is permission. Please
double check your account and those groups which contain your account
have sufficient permission to create release. Check if there are any deny setting, since deny trumps allow in TFS.
Set Inheritance > On, and then assigned full rights to the Administrators and Service groups in the Build (not Release). And this actually should bring back the drop-down content of artifacts versions in Releases.
Here are the documents which explains how to create the release definition and how to link the artifacts. Please kindly go through it in case you need:
Define your multi-stage continuous deployment (CD) pipeline
Release artifacts and artifact sources

What does "Build and Release" in Jira versions mean?

At project > settings > versions you can create versions and apply Build and Release on a version. I totally understand what Release means here (it applies a release date and sets the state to released), but what does Build mean here?
This is an excerpt from official JIRA documentation:
Build the release.
The next step is to build the release. A release is essentially a snapshot of the artifact(s) and related metadata that will be deployed. A release is created from a single build.
If you have connected JIRA Software to Bamboo, you can automatically run a Bamboo build when you release a version. Otherwise, if you haven't connected JIRA Software to Bamboo, or you are using a different build tool, you will need to run your builds independently.
So, primary purpose of the build option is to automatically run Bamboo build if Bamboo and JIRA are connected.

TFS plugin to view builds like Build View in Jenkins

I am new to Microsoft's Team Foundation Server. Have used Jenkins, but now I'm trying to explore and possibly switch to TFS. The Build View add-on in Jenkins is very helpful by providing visual view of all the deploys. Is there any in TFS that will provide information, which builds have succeeded or failed and progress of current deployments?
Thanks
There is the build summary view in TFS and can review each build of a build definition.
A related article: Visual Studio Team Services – NEW FEATURES: 3 Build Summary Page Improvements

Reconcile Workspace for TFS 2015 vNext Builds

We used to get notification from the tray of our windows machine for a finished build while using the xaml build definitions, it also had an option to reconcile workspace. The same functionality is not available for the vNext builds.
The BuildNotification App is available with VS 2015, but it seems that the reconcile workspace is not available with the vNext build. Is there some other app that can give a notification and do the reconcile operation?
We just moved to new builds (vNext) and are missing this feature as well.
Currently, we can do this manually via IDE (VS 2015):
Team Explorer -> Builds
Right click on latest build with you changes -> "Reconcile Workspace..."
The BuildNotificationApp is still a part of the VS 2015 and can be found here: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\BuildNotificationApp.exe. However, this app only applied to XAML build.
For now, to workaround the missing feature, you can use a free build status tool Catlight . It also shows status of vNext builds in tray area.
As for reconcile workspace, there is no this build-in feature for vNext build. However, you can manually use tf reconcile command for your workspace. Such as below screenshot:
Update:
If you just want a simple app or vs extension to achieve it, there is no these things for now. You may have to customize your own extension to implement it.
Update2:
I have created a feature request in uservoice:
Reconcile Workspace for vNext Build
https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/15979690-reconcile-workspace-for-vnext-build
You can use AnyStatus to monitor both vNext and XAML builds.
AnyStatus comes with a feature called Triggers which lets you run a program or a batch script in response to status changes. Using Triggers you can configure it to run "tf.exe reconcile" when the build status changes from Running to OK.
Disclaimer: I am the author of Any Status.

Is there a way to commit artifacts tfs from jenkins build

It very easy using the TFS Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Team+Foundation+Server+Plugin) to check detect code changes committed to TFS, check out the code and compile it using Jenkins.
However I need to check a build artifact back into TFS after the build is complete. I can't see an option to do this.
Is there a way to commit artifacts tfs from jenkins build
This link might prove useful.
https://blogs.msdn.microsoft.com/visualstudioalm/2016/05/27/continuous-deploymentdelivery-with-jenkins-and-vs-team-services/
It's Developer Tools Blogs > Microsoft Application Lifecycle Management article which shows how to set up a Jenkins project that archives artifacts on TFS.
It's titled "Continuous deployment/delivery with Jenkins and VS Team Services" by Anand Gaurav...Really easy to follow and each step is carefully explained.

Resources