System
>Component Settings
>Agent for Version Imports
Created
November 29, 2022 04:22
uDeploy
Manually importing the version
- Go to
Components
>Component Created
>Import new version
> Click theSave
button
creating component process
- Go to
Components
>myComponent
>Processes
>Create Process
- Edit first Shell Step
- Click on
Shell Script
and add the below code
#!/bin/bash
sh script.sh
- Click
Save
- Rest every configuration is default and click
OK
- Similarly make changes in the second shell step
- Edit Artifact Download and the client
OK
- Save the process
- Install Maven on Agent:
sudo apt-get install -y maven
- Add New Component under
Base Level Resource
Application
- Update
Base level resource
for Env
- Create new or update
Application Process
to include new component as a part of deployment
Steps to Install UCD Agent
- JDK 11 should be install on the target agent machine
- Credentials or password less authentication should be available
- Agent Configuration Template should have correct
server-url
which iswss://udeploy-server-host:7919
- Agent Properties file should have correct template configured
- User to be used for connecting from UCD Server should have access on
Agent Installation Directory
to create files
URL to download Jenkins Plugin to connect with UCD
Integrating Jenkins
with uDeploy Server
- Go to http://18.217.138.14:8080/manage/configure
- Go to
IBM UrbanCode Deploy Publisher Plugin Configuration
and ClickAdd
- Add the UCD Server Details & Click
Test Connection
- Click
Test Connection
and ClickSave
if gotSuccess
Create new Jenkins Job
- Go to http://18.217.138.14:8080/newJob
- Click
OK
- GITHUB URL: https://github.com/kul-samples/java_sample_webapp.git
Installing Tomcat for Deployment automation
wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.0.27/bin/apache-tomcat-10.0.27.tar.gz
tar -xvf apache-tomcat-10.0.27.tar.gz
rm -rf apache-tomcat-10.0.27.tar.gz
mv apache-tomcat-10.0.27/ tomcat/
cd tomcat/bin/
./catalina.sh start
- try to access using http://your-agent-ip:8080
Create a Component Process
for a new Java component, using the below steps
- Start
- Download Artifacts
- Shell
3.1. Below is the content for the shell script step
#!/bin/bash
cp devops.war /home/ubuntu/tomcat/webapps/devops.war
- Finish
Add Component to the Application
Add Base Resource to the DEV Environment as per the below screenshot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
click
save
once configured