Sending notifications on build failure in Bamboo server - bamboo

I want to configure the Bamboo notification in a way that
When a build fails on the bamboo server a notification mail should go the developer responsible for the build failure. This is achieved and works fine.
Also the notification about the build failure should go to the developer's respective supervisor (say his/her scrum master and product owner). How to achieve this?
Thanks for your time and help

It is possible. In Bamboo 4.x (and i think also in Bamboo 5.x) you can set this kind of notification here: Configure Plan->Notifications
On this site, you have a few options. You can select in the Event dropdown menu for example "Failed Builds And First Successful" and in Recipient Type "Committers".
You can add multiple notification rules.

Related

Trigger more than one URL after IntelliJ Run configuration is run

I have a Run configuration which builds an exploded web app, deploys it to tomcat, and opens the home page after that. However, I want to hit a few URLs to set some state in the app before opening the home page (Or after opening the homepage; it does not matter). Is there a way to trigger a few URL hits after the run configuration? This feature would be similar to "before launch." Instead, it would be "after launch".
There is no such feature at the moment, you can vote for the related feature request.
It's not as simple as it looks since it's not clear what would trigger the after event. The app server doesn't exit/terminate, but is still running, therefore it's not possible to use another run configuration with your app server added in its Before launch steps, otherwise you could create a Shell script configuration that would call curl/wget.
For the app server the proper after event would be the moment when the artifact deployment is complete which requires the tight integration with this specific app server so that IDE knows the exact moment when it happens and allows to call some custom action.
This might be possible with the custom plug-in as IDE already knows when the artifact deployment is complete.
A really hacky workaround would be to run some tiny HTTP server and open its URL from the IDE instead of your real app server. This custom server would call the URLs/APIs you need and then open a browser for your real app URL.

Sending notifications on build start in Bamboo server

I'm looking to be able to send notification whenever a build is started and not only when they are completed.
Is there a way to get custom Notification Events?
There is not a native way to do this. However, there are some creative ways to get around this:
Use a task in a build job to send out the notification via a script or executable (my recommendation).
Use webhooks and 3rd party applications (e.g., Slack, Microsoft Teams)
Use the Bamboo API + a custom script to watch for the build to start.

MobileFirstPlatform 8.0 Push Configuration Error

Created MFP CF app in Bluemix. Push notification was also working fine with GCM. Today saw a messages that there is an update for MFP in the Bluemix dashboard and clicked "Recreate" button. Server was recreated and all my apps and adapters were gone. Then from my development environment pushed the app and adapters and went to console to configure push notification and add the GCM details. Found an error at the top and now I don't see the text box to add the "Server API Key" and "Sender ID"
Looks like the new update got this issue. Is there a way to fix it or backout and go to the previous version?
Any help would be appreciated.
There is work to assure that such events will not happen, however please note this very important notice about the Mobile Foundation Bluemix service, with the Developer plan:
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/bluemix/using-mobile-foundation/
Note: the Developer plan does not offer a persistent database, as such be sure to backup your configuration as explained in the Troubleshooting section.
Such data loss may occur.
For now you will need to reconfigure your GCM credentials in the console.

Wanted to enable the "Directupdate feature in the Worklight application"

We have already delivered the 1.0 version of our Worklight application. By mistake we have disabled the Direct update feature by updating the attribute "connectOnStartup = false"
We dont want to redeploy the application to markets (AppStore/GooglePlay) again, but wanted to make our users to utilize the direct update feature. We do have the access to WL server.
Our issue is little different from the one which is already discussed here "IBM Worklight - How to disable Direct Update?"
How can we provide the direct update feature to our end users without redeploying the application to AppStore/Googleplay. And just by changing the Webresources of the application.
We are using the adapters in our application but no where we are explicitly calling the "WL.Client.connect".
The Direct Update feature is always enabled by default.
You need to edit your question and explain what it is you've done in your Worklight project.
The feature will not work if:
You have set connectOnStartup:false
You are not using WL.Client.connect
You are not invoking adapters
You disabled it via the checkbox in Worklight Console
Otherwise, the feature will work, and a check for Direct Update will be performed:
On application startup
On return to foreground
The application will need Re-deployment on the App stores.
So the solution to your problem is
Rebuild the Application with connectOnStartup:true.
Redeploy the Application on App Stores
Once the users download the updated application, future updates will go to the users directly.
While rebuilding, make sure that you change the Version of your application within ApplicationDescriptor.

TeamCity - How do you give feedback to clients for a deployment to their machine?

Currently when our software is out of date, the following call is made to queue a deploy in TeamCity.
/httpAuth/action.html?add2Queue={0}&system.name=TargetMachine&system.value={1}
Argument 0 being the buildTypeId and argument 1 being the hostname of the targetMachine.
We are trying to setup a way to give the client feedback on the status of their build in TeamCity. Our idea was to create a website that would popup on a clients computer to show the status of their deployment in TeamCity, but can't figure out any quick way of doing this. Keep in mind we dont want the client to see the whole queue, only their build.
The problem I am arising at is when calling TeamCity with the command above, there is no way that I know of to retrieve the created buildId. If I could get the buildId, then the rest should be pretty easy.
You can use TeamCity Windows Tray Notifier tool. You can configure notificationf for different events like build started/finished/etc. Obviously if this is a case installing such a tool on the client's PC.
For instance, an user would see such popup window in case of build crash:
Also TeamCity allows configure email notification on the broad set of events related to a particular build or project.