Are their any APIs for IBM Bluemix DevOps services like Delivery Pipeline? - ibm-cloud

I want to use Bluemix DevOps Services from a portal outside of Bluemix.
Are there APIs which can be used to invoke DevOps services.
For example : How can I create a delivery pipeline without using bluemix or hub.jazz interface?
Thanks

This question is answered over on IBM's dWAnswers in this thread.
To put it plainly, no, though you can 'automagically' create pipelines with Bluemix's Deploy to Bluemix feature.

Related

How would I go about setting up a web hook listener on Azure DevOps?

Goal:
We have a Translation Management System project with a set of string translations, which can be exported as iOS, Android, and web formats. This can be done via its API, CLI, or manually with the UI. We need to integrate with our git-based repository, which lives in DevOps, so that when changes are made to the TMS translations, the code base is updated automatically (preferably a PR would be created with the changes).
What I Have Tried:
I am a mobile developer with little web hook experience, but it seems that they are the key to the solution. I can configure the web hook on the TMS side, but need to provide a URL with a listener. Going through the Azure DevOps service hooks settings and reading documentation extensively, I can't find any leads on a way to set up a custom listener to subscribe to another service's web hook, consume its payload, and trigger an action in DevOps.
I'm aware this may be limited by the capabilities of the TMS and DevOps, but how would this be tackled viewing it from a high level perspective? It doesn't seem like there's any built-in solution, so what would a custom solution entail? If something along the lines of what I'm looking for isn't possible, I would like to know that as well.
Thanks in advance!
So that when changes are made to the TMS translations, the code base
is updated automatically (preferably a PR would be created with the
changes).
Sorry but as I know it's not supported scenario in Azure Devops Service.
1.The service hooks option in azure devops service is that when something(event) happens in Azure Devops Service, it runs task(action) on target service. But what you want is when something happens in external service, it runs task(action) in azure devops service. For now this behavior is not supported.
2.And different service in Service Hooks has different supported actions. Let's take Jenkins service(one service hooks) as example, see step5 in trigger Jenkins: Azure Devops can trigger Jenkins build.
As for Web Hooks(another service hooks), it can't trigger actions like the code base is updated automatically. It just sends the Json representation.
So the scenario you want is not supported for now by Azure Devops Service.
In addition: Not sure about how your TMS works, but you can consider using Azure Devops Rest API to trigger actions in Azure Devops Service. (These rest apis can be used to queue build, release or do git-related actions )
When changes are made to your TMS translations, you may call corresponding Azure Devops rest api to manage git repos in Azure Devops if your TMS supports this kind of behavior.
Hope all above resolves your puzzle why your scenario is not supported by Web Hooks in Azure Devops:)
When you Authorize your GitHub repo through the devops settings, webhook will be automatically created on your repo with configurable hook events.

Azure pipeline - How do I deploy code to Preregistered application

Our devops team have created an application (ex:athena) and registered with AD. They also have given us Service Principle.
The question I have is , how do I deploy my code in GitHub to the application (athena) that the devops team created for me using the “Deploy to kubernetes service” configuration template ?
Apologies in advance, as I am not proficient in Azure and this shows my gap in understanding.
The Information I have are :
Repository - GitHub (I have done the appropriate authorisation and can see the repository)
Service Principle (create by devops team)
Application (created by devops team)
I have created a Container Registry and Kubernetes service using azure portal
Now, I want to use the “Deploy to kubernetes service” configuration template.
Help much appreciated.
If you want to use this Deploy to kubernetes service, you must get two service connection : Azure Resource Manager and Kubernetes Service Connection.
So, first, you need to configure the connection between Azure Kubernetes, ARM and Azure Devops. Enter project setting->service connection, open New Service Connection and select Kubernetes. Input the relevant configure according to your Azure:
And so do with Azure Resource Manager, you can follow this doc to configure it. Here is my ARM connection you can refer:
Then, you can begin your build and release pipeline.
Deploy to kubernetes service task used in release pipeline. In build pipeline, you must run docker build, push task to finish pushing to Azure registry Container.
And then, run this deploy task in release. You can refer to this blog which written by Azure DevOps Labs: Deploying a multi-container application to Azure Kubernetes Services. It has detailed steps you can refer.
In addition, there has two build source type. One is you import your github repos into Azure Devops repos. So the build can be trigger by Azure Devops Repos. And the other is select Github as your build source, in this type, you can triggered directly by your github instead of use Azure Devops repos:
And also, this need you get the service connection with your Github first. Then, authorize it during the build pipeline.

Cannot enable Slack for Bluemix DevOps services beta

I wanted to take advantage of the Slack communications beta for Bluemix DevOps services, but in my IBM restricted DevOps project I do not see any option to enable it..
What am I missing?
This is explained at Integrating Slack with Bluemix DevOps Services BETA - Integrations - IBM Bluemix DevOps Services:
Project's Overview page->Integrated Tools section->Integrate with a tool->SLACK.
You may want to instead use the next evolution of Bluemix DevOps Services, which has Slack integration, in addition to several other ones.
Please see https://developer.ibm.com/devops-services/2016/06/16/open-toolchain-with-ibm-bluemix-devops-services/

Is it possible to have code review workflows in Bluemix Devops Services?

We are used to running Java development projects, typically using Atlassian products including Stash. We're now trying to use Bluemix Devops Services instead.
One limitation we have found is that you cannot create Pull Requests, meaning we can't review changes to source code before it is merged.
Is this the case? And what do others do for source code review workflow in Bluemix Devops?
At this time no you can not do code reviews through Bluemix. You can however attached the DevOps pipeline to a Github project though.

How to move a Bluemix DevOps project to another account

I have an IBM DevOps Bluemix project in one of my Bluemix accounts and I need to move it to one of my other Bluemix Accounts. How do I do that in the new Bluemix DevOps?
you could take a look at the cloud foundry cli plugins. here is one - https://github.com/mevansam/cf-copy-plugin. This allows you to copy from one space/org/target to another