Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anirban3
Explorer
0 Kudos

Azure Git with BAS

  Preparing Git for a new Project

  • Open Azure
  • Anirban3_0-1712650830621.png

     

  • Select the Repos option from the left Pane. Here you can create the branches for your BAS project and refer to your BAS project for pushing or pulling the code. Below screenshot we can see the New Branch creation button. 

Anirban3_1-1712650831360.png

 

   Azure Git connectivity with BAS (Business Application Studio)   

  • After creation of Application in BAS, open terminal and execute git init command.

Anirban3_2-1712650830724.png

 

  • Execute git config --global user.email <email ID Azure_repo>

Anirban3_3-1712650831036.png

 

  • Execute git config --global user.name "your_name"

Anirban3_4-1712650830959.png

 

  • Execute git remote add origin https://urls.git (first time once you are doing committing to repo)

Anirban3_5-1712650831166.png

 

  • Execute git add command

Anirban3_6-1712650831323.png

 

  • Now execute git pull origin <Branch_Name> --allow-unrelated-histories.

It will ask credentials for azure git. Provide the password which can is generate from azure git portal,

Anirban3_7-1712650830798.png

 

Anirban3_8-1712650830718.png

 

  • Execute git commit -m "Your Comments.”

Anirban3_9-1712650831077.png

 

  • Execute git push origin HEAD:<branch_name>

Anirban3_10-1712650830954.png

 

Anirban3_11-1712650830837.png

 

In Azure portal you should see our committed code like above screen.

 Project cloning in BAS workspace from Azure Git

  • Execute git clone <URL link>. Obtain URL from git.

Anirban3_12-1712650831042.png

 

  • Execute the below command and project will clone in your BAS workspace.

Anirban3_13-1712650830960.png

 

 Push changes from BAS to Azure Git

  • Do the changes in your project, for example here a modified i18n file is shown. After change execute git status to check which files are modified yet.

Anirban3_14-1712650831213.png

 

  • Then execute git add.

Anirban3_15-1712650830757.png

 

  • Now execute git commit -m “<your_msg>”

Anirban3_16-1712650830914.png

 

  • Now execute git push origin HEAD:<branch_name>

Anirban3_17-1712650831126.png

 

We can see the changes in Azure Git portal,

Anirban3_18-1712650831343.png

 

Anirban3_19-1712650831001.png

 

Deployment from BAS

   Application Deployment from BAS to SAP On-Premise System

  • Go to project folder and open terminal and execute the command npm init like below screen.

Anirban3_20-1712650831256.png

 

  • Execute npm run build

Anirban3_21-1712650831161.png

 

  • Then we must execute, npm run deploy-config

Anirban3_22-1712650831121.png

 

Here the system will ask for the ABAP repository, target system, package (put package name which are existing into SAP system), BSP application name, Transport request.

Anirban3_23-1712650831305.png

 

  • Then execute npm run deploy

Anirban3_24-1712650830877.png

 

Anirban3_25-1712650831252.png

 

#BTP #BAS #On-Premies #Node-npm 

 

Labels in this area