Skip to content

Instantly share code, notes, and snippets.

@kmayer10
Created November 29, 2022 04:22
uDeploy

Go to Settings tab on top in UCD

  • System > Component Settings > Agent for Version Imports

image

@kmayer10
Copy link
Author

click save once configured

@kmayer10
Copy link
Author

Manually importing the version
  • Go to Components > Component Created > Import new version > Click the Save button

@kmayer10
Copy link
Author

creating component process
  • Go to Components > myComponent > Processes > Create Process

image

image

image

image

  • Edit first Shell Step

image

  • Click on Shell Script and add the below code
#!/bin/bash
sh script.sh

image

  • 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

@kmayer10
Copy link
Author

kmayer10 commented Nov 29, 2022

creating Application Process
  • Go to Applications > myApplication > Processes
  • Click Create process
    image
  • Click Save
    image
  • Edit newly added step
    image
  • Click OK
  • Click Save

@kmayer10
Copy link
Author

creating Resources
  • Go to Resources > Click Create Top Level group
    image
  • Click Save
  • Select Resource
    image
  • Select add Agent
    image
  • Click Save
    image
  • Select Add component
    image
  • Click Save

@kmayer10
Copy link
Author

image

image

  • Click Save

@kmayer10
Copy link
Author

Running Deployment on ENV

  • Go to Application > myApplication > DEV > Request Process
    image
    image
    image
  • click Submit Deployment

@kmayer10
Copy link
Author

image

#!/bin/bash
mvn clean package

@kmayer10
Copy link
Author

kmayer10 commented Nov 29, 2022

  • 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

@kmayer10
Copy link
Author

kmayer10 commented Nov 29, 2022

create a new environment with the name TEST and enable Lock Snapshots & Requires Snapshot

image

@kmayer10
Copy link
Author

image

image

image

  • Add Base level resources

@kmayer10
Copy link
Author

Steps to Install UCD Agent

  1. JDK 11 should be install on the target agent machine
  2. Credentials or password less authentication should be available
  3. Agent Configuration Template should have correct server-url which is wss://udeploy-server-host:7919
  4. Agent Properties file should have correct template configured
  5. User to be used for connecting from UCD Server should have access on Agent Installation Directory to create files

@kmayer10
Copy link
Author

URL to download Jenkins Plugin to connect with UCD

Jenkins-Pipeline-UCD-Plugin

@kmayer10
Copy link
Author

Integrating Jenkins with uDeploy Server

  • Go to http://18.217.138.14:8080/manage/configure
  • Go to IBM UrbanCode Deploy Publisher Plugin Configuration and Click Add
    image
  • Add the UCD Server Details & Click Test Connection
    image
  • Click Test Connection and Click Save if got Success
    image

@kmayer10
Copy link
Author

@kmayer10
Copy link
Author

Configuring Jenkins Build to publish build artifacts in UCD Compoent

image

@kmayer10
Copy link
Author

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

@kmayer10
Copy link
Author

kmayer10 commented Nov 30, 2022

add a new agent and new component as shown in the image below to the resource group.

image

@kmayer10
Copy link
Author

kmayer10 commented Nov 30, 2022

Create a Component Process for a new Java component, using the below steps
  1. Start
  2. Download Artifacts
  3. Shell
    3.1. Below is the content for the shell script step
#!/bin/bash
cp devops.war /home/ubuntu/tomcat/webapps/devops.war
  1. Finish
Add Component to the Application
Add Base Resource to the DEV Environment as per the below screenshot

image

@kmayer10
Copy link
Author

Update the Application process as per the below screenshot

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment