In this article I will look at modifying the out of the box boilerplate application and starting to look at the tooling around the new XPages in Bluemix capability. I will specifically talk about the use of the Bluemix integrated git repository.
Introduction
In the previous article I walked through the basic steps of creating the boilerplate XPages application in Bluemix. So let’s look at what we created and how we can mess with it 🙂
The Dashboard
Looking at the dashboard for our new boilerplate application we can start to see a number of items. On the top right there is an option to Add Git
Continuing will create a git repository within the Bluemix integrated jazz hub repository. Once complete you will see a link to the new repo
Clicking on the link will take you to the repo page
We can immediately see from this image that it is not quite what we normally expect from a “source control repo” for XPages development. The entire NSF is part of the repo……but let’s go with it.
Click on the “Git URL” link to get the URL for the repo
I use source tree for this part of the process – Clone New and use the URL for the repo – you will have to log into IBM as well
Once complete you will have the repo locally – it can then be opened in Domino Designer
As we have seen before – we have the to do boilerplate application – to which we can add a new simple XPage
Note
You must be using the notes ID provided by bluemix for your notes applications.
Build and then close the application in designer
Within Sourcetree – we commit the changes in the master branch and push to repo
Once that is complete we can refresh the jazz hub repo page and see the committed change
When we created this repo in Bluemix, the automatic build and deploy tasks were created as well – so clicking on the “Build and Deploy” tab on the top right takes us the deploy page where we can see this in action
Once that is complete we can go over to our application http://hub.mybluemix.net/ToDo_design.nsf/marky.xsp and there it is
Conclusion
Using this method we are able to upload a new XPage into the application without using the built in tooling in OpenNTF release v13
Caveats
I did have a build issue, don’t know why (experimental code) but clicking the redeploy button fixed it.
Don’t forget to build before you send to Bleumix (duh Marky)
I am not sure I recommend this manner of deploying an application to Bluemix via this method – I just wanted to see if it was possible.
Watching the IBM DevOps build/deploy pipeline at least feels gratifying 😉.
Kinda cool isn’t it
😃
[…] XPage build process – Could could add git to a Bluemix project and deploy your code the git See post perhaps we will see a ODP git push to Bluemix in the future that would be […]
Reblogged this on Dinesh Ram Kali..