How to enable/disable the message extension in bot chat window?
Is there any specific command in the manifest file to do the changes?
To enable/disable your messaging extension in compose box of message you'll need to add/remove the compose value from context section of bots messaging extension commands section in manifest.
You can refer below link to get more details on context of messaging extension.
When you want to enable messaging extension to be invoked from compose box add compose value in context.
"context": ["commandBox", "compose"],
When you don't want to include it, remove the compose value from the context section.
Thanks
Related
Using Jenkins we would like to set this global description by default. We have used groovy scripts to set other global variables but I'm struggling to find what methods / classes I need to call in order to set this description for our Jenkins instance. I see many description plugins for builds but this is instead the description you see on the Jenkins homepage (not per build). In the image below I clicked "Edit description" and then typed "test" in the box and pressed save.
That's the workflow we'd like to automate using Jenkins groovy code :)
Thanks!
The description that is shown in your image, is not a global Jenkins description but rather the description of the current view you are looking on - in this case the All view. If you switch to another view it will change.
To modify this via groovy code you need to modify the description of the view by its name:
Jenkins.instance.getView('all').setDescription("My New Description")
If you do want a global message that will appear always regardless of the selected view you can use the System Message option (configurable via the Configure System menu):
This message will be displayed at the top of the Jenkins main page.
This can be useful for posting notifications to your users
To update the system message via groovy code you can use the flowing:
Jenkins.instance.setSystemMessage("My System Message")
How i can add attachment link in TFS Build notification email? I have TFS 2017 on-premises installed. I have tried by making changes in xls file but it didnt worked. i will be grateful to you if anyone can help me with this.
You can find the email templates in %PROGRAMFILES%\Microsoft Team Foundation Server 2015\Application Tier\TFSJobAgent\Transforms and modify them the way you want. In this folder you'll find the build completion events xsl files.
The build events expose a Url property, which shows the hyperlink in the email.
Besides, you could also choose to use some 3rd-party extension to send E-mail Notification.
Send Email
Other Extension
Those tasks they send an email to the address(es) you defined in your pipeline. You can defined the contents of the message yourself.
I'm sending build logs to Logstash via the logstashSend method at the end of a Jenkins declarative pipeline. The logs are being written to Logstash and I can query them in Kibana. The "data" section of the message contains what looks like a pre-configured set of Jenkins job properties. I'd like to add some properties to this set but I can't find any documentation that talks about how those properties are set.
Is there any way to add to/modify the properties in the data section of the message?
No, it is not supported yet, but is a highly requested feature.
You can see that there is an open issue (JENKINS-50455) for implementing this new feature.
I am trying to link or associate an external application url to jenkins job build.
So for every builds, this link or url should be available at the left side and any user can simply click on it to launch the external application.
So far I explored the following plugins for this:
https://wiki.jenkins.io/display/JENKINS/Associated+Files+Plugin - this associates a file or directory to the build , something similar to the html publisher plugin... not a url
https://wiki.jenkins.io/display/JENKINS/DocLinks+Plugin - similar to above , associate a doc from the build artifact directories
https://wiki.jenkins.io/pages/viewpage.action?pageId=52298023 - this Side bar link plugin can associate a external link to the jenkin project, but not to every builds
for me the external link which I am trying to associate to the build , dynamically changes for each build , basically some of the query parameter in the external link, so it's critical to associate it to every builds for tracking and other purposes . ex: the external link will be a like a small web app
http:hostnamexxx:port/somepage?para1=xxx¶2=yyyy
Please let me know if there is any plugin for this specific purpose or any other ideas
This would be the Anchor Chain plugin. I've played around with it a bit:
The docs state that the icon can be omitted. Then however you need to insert a tab character after the URL.
When inserting a link to an icon, it is always relative to Jenkins base URL.
I have a requirement my below,
We have a build release server environment, which has currently linked with the Teamcity Build system and Kb system, etc. That means, in Teamcity, every build event changes (i.e., events like, build started, build finished, build succeed, build failed, build quality changes/pinned, etc.), it notifies/calls the release system web service with build details (the Xml data).
Now, we are trying to move to the TFS 2013 system instead of Teamcity and I am new to the TFS administration things. I have got a task to connect the release server and do the same job like Teamcity. Which means, in TFS system, on every build event changes (like, build started, build finished, build succeed, build failed, build quality changes, etc.), it should call the release system web service with TFS build Xml data so that I can update that in our database. Would you please tell me the method by which I can achieve that?
FYI,
I have tried with TFS alert notification as below. But, seems like it doesn’t allow to call web service from this section. It only allows to mail the details to specific users. Please let me know if I am wrong.
If it can be achievable through XMAL script, would you please provide some test XAML scripts how can I call the web service from this?
Thanks.
There are multiple ways to achieve this.
But if the alert types are sufficient for your needs, then going through the alert mechanism is the simple way.
You will just need to create a simple listener service to be notified of the desired event (you already suspected of a such mechanism) using alert mechanism's SOAP event feature.
Create a simple web service, having a method like below:
public void Notify(string eventXml, string tfsIdentityXml, SubscriptionInfo subscriptionInfo)
{
EventProcessor.Process(eventXml);
}
SubscriptionInfo class is defined in Microsoft.TeamFoundation.Framework.Server, but you can also use the override without it if available.
Then publish and make available this service, for example having the address: http://localhost:101/NotifyCorpService.svc
Then, you should add an alert for each event you want to be notified (or a single one if applicable using conditions together):
Create an Alert
Set Alert's property "Format" to "SOAP"
Set Alert's property "Send To" to "http://localhost:101/NotifyCorpService.svc"
Finally, you can use the "eventXml" and using its contents, call the web service you want in the code behind of the simple web service we created (NotifyCorpService in our example)