How to find when a TFS Job was created - tfs

I am wonderding if there is a way to find out (through API preferably) when projects on a tfs server was created in psudo-real time (Specifically, tfs paths and git repositories). The closest I've gotten is to find the earliest push of every project, but any code I can think of would take too long. Here's my thought process:
Get Tfs API for list of all jobs
Go to the url of every job
Substring search for earliest commit
is there any way I can send only one api request and get the dates from the response? Thanks.

There is a tool for TFS Administrators which can monitor job status through
http://your-server:8080/tfs/_oi/
Built-in to TFS is the TFS Background Job Agent. This job agent is responsible for the scheduling and queuing of maintenance jobs and other jobs within TFS. More detailed info you can refer this blog from MSDN: How to see activity and job history in TFS 2012

Related

How to trigger Jenkin Jobs from Microsoft Team Channel?

I am looking to trigger Jenkins's job from the Microsoft team's channel. Can anyone provide step by step implementation of this?
There are two nice options you can use:
Outgoing Webhook - Will scan for words in the chats and send a notification to your Jenkins server.
Commander - Second and more customizable option is using the Commander add on for teams, which in addition to builtin commands provides the ability to Create your own Custom Commands.
With both options you will be able to tigger Jenkins jobs via the Remote Access API, see the This Question for additional info on remote execution.

Jenkins TestComplete get test Execution Id from Jira

I need to integrate TestComplete and Jira to Jenkins. My requirement is to get test Execution Id from Jira and pass that execution Id to TestComplete through Jenkins. Is there any way to achieve it.
TestComplete and Jenkins already have integration which could be found Here
As for grabbing the execution ID... TestComplete has an operation called Set-Variable Value. This allows you to store any value from the machine as a variable to use later. One of my favorite features in TC. This should give exactly what you need. Just be aware that you could also Log a message and customize the message with any stored values as well

Can you use TFS API with only query strings? Trying to queue build from Slack

Using On-Premise TFS 2017 and Slack. Just trying to find a way for people to manually queue builds. Slack Slash Commands will almost work, but can't seem to send JSON bodies, so I'm trying to find out how to send credentials and definition IDs using only query strings...
Some background:
Our people cannot run unsigned Powershell Scripts because of Group Policy overrides for ExecutionPolicy.
Don't want to give people access to queue builds through web interface.
We are using CI/CD, but need to manually queue for QA/Demo builds.
Wanted to avoid using another app as a go-between if possible, since new environments for hosting are hard to come by here.
Is there a way to hit the TFS API through Slack Slash Commands?

TFS 2015 - Plugin vs Web Hooks

I have a TFS plugin as a part of my application that sends out alerts to a web API URL when anything changes on that TFS 2015 instance. The Web API processes those alerts as required.
Now I recently came to know about the
Web Hooks feature in TFS 2015 which essentially accomplishes something similar.
I'm considering getting rid of the TFS Plugin and switching onto the Web Hooks simply because I will need to maintain one less component. However, reliability is most important to me. So, is there a way to find out if the latter is more reliable than the former, or if it's the other way around?
Also, does TFS give preference to either in terms of execution order? I've been told that the web hooks capture the field values (for a WorkItem) when the event is created. Whereas the plugin retrieves the fields after the event is fired so there might be a small lag time.

JIRA Integration with external systems

I'm working on a POC to automate downstream processes in external systems based on JIRA processes and have hit a wall with the API. It appears to have great integration for pulling data about tickets out of JIRA and for the ability to externally generate tickets into JIRA.
However I don't see how to trigger external calls as a part of my workflows. For example if a ticket should be prevented from being routed to the next stage of a workflow without accessing a database to ensure availability of inventory first how could I do that in JIRA?
Based on attributes in the JIRA ticket upon final completion of the workflow we'd like to send a JMS or REST message or possibly update an external database. Is this possible?
Thanks all in advance for the help!
If you want to do a "before" check, use a Validator on the Workflow Transition.
I strongly suggest deploying the (free) Script Runner add-on. There you can implement a ton of things. For example, you'll get a new validator option "Script Validator", where you can specify a Groovy script that decides if it lets through the transition or aborts it.

Resources