<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Azure Devops to Openshift Deployment - Medium]]></title>
        <description><![CDATA[Azure Devops to Openshift Deployment of aapplication without Jenkins - Medium]]></description>
        <link>https://medium.com/azure-devops-to-openshift-deployment?source=rss----8e890118046d---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Azure Devops to Openshift Deployment - Medium</title>
            <link>https://medium.com/azure-devops-to-openshift-deployment?source=rss----8e890118046d---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:11:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/azure-devops-to-openshift-deployment" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Here are the steps with which you can easily deploy your application to Openshift using ADO…]]></title>
            <link>https://medium.com/azure-devops-to-openshift-deployment/here-are-the-steps-with-which-you-can-easily-deploy-your-application-to-openshift-using-ado-12e9d49d3313?source=rss----8e890118046d---4</link>
            <guid isPermaLink="false">https://medium.com/p/12e9d49d3313</guid>
            <category><![CDATA[azure-pipelines]]></category>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[application-deployment]]></category>
            <category><![CDATA[adó]]></category>
            <dc:creator><![CDATA[Hari Narayan]]></dc:creator>
            <pubDate>Sat, 26 Sep 2020 08:01:08 GMT</pubDate>
            <atom:updated>2020-09-26T08:01:08.731Z</atom:updated>
            <content:encoded><![CDATA[<p>Here are the steps with which you can easily deploy your application to Openshift using ADO without using Jenkins.</p><ol><li>Go to your ADO link and click on the Pipeline link on your navigation bar to the left and see if you have the permission to create a ‘New Pipeline’.</li><li>Once you have it , then thats great … as you can now proceed to create a new pipeline to deploy your application to the Openshift.</li><li>Now you can click on the ‘New Pipeline’ button and you will get the below screen.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*cyn9PvyjFuAyCujD3yZ3zg.png" /></figure><p>4. Here you can click from the choices above wherever your code exists and proceed.</p><p>5. But here i am going to show you using the classic editor. So you can click on the classic editor link.</p><p>6. Once you click on it, you will go to new screen which ask you to ‘select a repository’. So you can click on the ‘Azure Repo Git’ radio button and then below you can select :</p><p>a) Team Project: Container where your code exists. let’ say “My-Container”</p><p>b) Repository: Your code repository which you need to deploy. Eg: test-demo</p><p>c) Default branch for build: You can select your default branch which you need to pipeline to trigger for. Eg: master, dev, etc..</p><p>7. Once you click on continue, you go to another screen as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CU7wTc_K7O8ukNlQeDy5CQ.png" /></figure><p>Here you can choose a template of your choice, but i will select here ‘Empty Job’ to create my job as my own requirement without using any template.</p><p>8. Here you get the screen as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBmu09Yr_tS3Sx8-EjlI_w.png" /></figure><p>SO you will see that your previous inputs of container and repository gets populated here.</p><p>a) Name: Your container name which you entered earlier in the previous screen while creating.</p><p>b) Agent pool: You can choose from the list. Like Azure Pipelien or LinuxAgent</p><p>9. Now click on the ‘+’ icon which you see next to Agent job 1. you will get screen as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMk27dcnaPsTBoSTFs5RoQ.png" /></figure><p>10. From the search bar on the right you can type ‘command line’ as you can see on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqHt2q4BKs1q9SddHu6kvg.png" /></figure><p>11. On hovering on the command Line after searching you will see you get an ‘Add’ button. Click on it. Once clicked it will get added below to the job as seen in the below screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZgbDXVEryxT978Tn1MxJ0A.png" /></figure><p>12. Now you can click on the Command Line script added below Agent Job 1 and you will get the screen as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnRizQySu-ppIq2glmF1bg.png" /></figure><p>13. Now you can add the steps for the application to be deployed from the ADO pipeline to Openshift.</p><p>a) For this you need to have a project container in the Openshift created so that you can deploy your code inside the project you want. Lets say Project name is ‘my-first-project’.</p><p>b) In the pipeline you can search for ‘oc setup’ i.e openshift setup for your pipeline before running the command else your pipeline will not understand the ‘oc command’ i.e openshift commands. You can refer to the below screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUMPX8zumyReVzSIk8AweQ.png" /></figure><p>a) Display Name: It is name of your choice.</p><p>b) Service connection type: Openshift connection service</p><p>c) Openshift service connection: if your project has openshift connection you can reuse that or else create a one by clicking on the ‘+New’</p><p>Once you click you will get new screen as below. Here you can enter the Server URL with the port of the openshift.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*hOZPR53Saso_UsizxzVLnA.png" /></figure><p>Once done with this step you can go to the command line and add the below steps.</p><p><strong>oc project my-first-project<br>oc delete configmap — selector app=$(APPNAME)<br>oc create configmap $(APPNAME)-config \<br> — from-env-file=$(System.DefaultWorkingDirectory)/application-config.properties<br>oc label configmap $(APPNAME)-config app=$(APPNAME)<br>oc new-app nodejs~$(repo) — source-secret=openshifttestconnection<br>oc set env — from=configmap/$(APPNAME)-config dc/$(APPNAME)<br>oc expose svc/$(APPNAME)<br>oc start-build $(APPNAME)</strong></p><p>Here $(APPNAME) your repo name like: ‘test-demo’ used above. We need to add the variable ‘APPNAME’ in the variable tab. the key value pair eg:</p><p>key as APPNAME value as test-demo</p><p>— source-secret= ‘the key which you created by clicking on the +New icon’.</p><p>So let me explain you the each step mentioned above what it does in oc:</p><p>a) <strong>oc project my-first-project </strong>— -&gt; It looks and gets into the project of yours</p><p>b) <strong>oc delete configmap — selector app=$(APPNAME)</strong> → This is if the project has already been created and has config map , if first deployment this will be bypassed.</p><p>c) <strong>oc create configmap $(APPNAME)-config \<br> — from-env-file=$(System.DefaultWorkingDirectory)/application-config.properties</strong> -&gt; This step created the config map which is the environment variable mapping to our application.</p><p>$(System.DefaultWorkingDirectory) will give the path of the default project and the application-config.properties is the file in repo which has the env variable we need in the application. Like Port no, appname, etc etc</p><p>d) <strong>oc label configmap $(APPNAME)-config app=$(APPNAME) -&gt; </strong>This step is to label your config map created in the openshift .</p><p>e) <strong>oc new-app nodejs~$(repo) — source-secret=openshifttestconnection -&gt; </strong>This step created a new node js app with the repo of yours. here $repo is the variable set int he variable tab. It should be set same as the appname. Here you need to give your repo full path.</p><p>f) <strong>oc set env — from=configmap/$(APPNAME)-config dc/$(APPNAME)</strong> -&gt; This will set the env variable from the config map which is created your application.</p><p>g) <strong>oc expose svc/$(APPNAME) -&gt; </strong>This will expose the route of your application through which you can click on url and verify if your application is running up or not.</p><p>h) <strong>oc start-build $(APPNAME) -&gt; </strong>This will start the build of your application.</p><p>14. Once this is all done you can save the pipeline and run this. Once it is successful , you can go to your openshift platform and inside your container you can see the pods running up and the application as deployed.</p><p>So these above few steps can help you deploy your application to the Openshift from the ADO pipeline without using Jenkins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12e9d49d3313" width="1" height="1" alt=""><hr><p><a href="https://medium.com/azure-devops-to-openshift-deployment/here-are-the-steps-with-which-you-can-easily-deploy-your-application-to-openshift-using-ado-12e9d49d3313">Here are the steps with which you can easily deploy your application to Openshift using ADO…</a> was originally published in <a href="https://medium.com/azure-devops-to-openshift-deployment">Azure Devops to Openshift Deployment</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>