SlideShare a Scribd company logo
© Copyright IBM Corporation 2015
Essentials of UrbanCode Deploy QQ147
Components
2 © Copyright IBM Corporation 2015
Agenda
What are components?
Aspects of a component
Creating a component
Importing Component versions
Component processes
Component templates
3 © Copyright IBM Corporation 2015
Objectives
After completing this module you are able to:
•Import artifacts to create a component
•Set environment properties on components
•Add versions to the components
•Create component processes
•Create component templates
4 © Copyright IBM Corporation 2015
What are components?
• Components represent deployable items along with
user-defined processes that operate on them. For
example:
• A typical Java-™ Platform, Enterprise Edition application
typically has three components (application, database, and
web components).
• Large applications might have many more.
5 © Copyright IBM Corporation 2015
Features of a component
The main features that make up a component are as
follows:
• Source configuration
• Component versions
• Component properties
• Component processes
6 © Copyright IBM Corporation 2015
Creating a component
To create a component:
1. Choose the Components tab.
2. Create New Component.
7 © Copyright IBM Corporation 2015
Creating a component
You see this page:
8 © Copyright IBM Corporation 2015
Creating a component
The fields on the form:
Name: Provide a name for the component. It might
reflect the item or tier of the application to be deployed.
Description: An optional field to elaborate on the
contents of this component.
9 © Copyright IBM Corporation 2015
Creating a component
Teams: With this field, you can associate a team with a
component. To learn more about teams, see the
security module or refer to the documentation.
Template: Components can be created from a
template. Templates are covered later in this module.
10 © Copyright IBM Corporation 2015
Creating a component
Component Type: You can select one of two types of
components, Standard and z/OS. Choose z/OS only if
this component is intended to be deployed to a
mainframe.
11 © Copyright IBM Corporation 2015
Creating a component
Source Config Type: In this field, you can define how
artifacts are associated with a component. Several
available choices come with the product. The
available choices are defined by source configuration
plug-ins. Each plug-in defines a single type of
artifact. You can import artifacts manually or have
IBM UrbanCode Deploy import them automatically.
12 © Copyright IBM Corporation 2015
Source config type file system
13 © Copyright IBM Corporation 2015
Creating a component
Use Base Path for importing a file system. In the
field, you specify where to get the files for
importing. The files are moving from the file
system to the UrbanCode Deploy artifact
repository for storage until they are deployed.
14 © Copyright IBM Corporation 2015
Creating a component
Import Versions Automatically: If this option is
selected, IBM UrbanCode Deploy polls the Source
Config for new versions.
Copy to Codestation: Select this option, if you want
to store the component versions in the IBM UrbanCode
Deploy repository (Codestation).
15 © Copyright IBM Corporation 2015
Creating a component
Default Version Type: Two version types are
available: full and incremental. Choose Full, if the
contents of the component versions represent the
entire component. Choose Incremental, if the
contents are a subset of the full component. For this
course you select Full versions.
16 © Copyright IBM Corporation 2015
Creating a component
Import version settings:
These settings determine which agent is
responsible for importing the versions into
IBM UrbanCode Deploy. Typically the first
selection is fine.
17 © Copyright IBM Corporation 2015
Creating a component
Inherit Cleanup Settings: Select this check box to
inherit the cleanup settings that are defined for the
server. If not, you must define your own cleanup
policies.
Run process after creating a new version: Select
this check box to launch a process immediately after
the IBM UrbanCode Deploy system recognizes a new
version.
18 © Copyright IBM Corporation 2015
Creating a component
Upon completion, your form looks like this illustration:
19 © Copyright IBM Corporation 2015
Creating a component
Next, click Save, and you see your new component.
20 © Copyright IBM Corporation 2015
Version import overview
After learning how to create a component, you learn
how to create a component version. Components can
have many component versions. These versions are
deployed later.
For the example, the File System Source Config type is
used. Before importing the versions, you must check a
few things first.
21 © Copyright IBM Corporation 2015
Version import overview
Recall that Use the system’s default version import
agent/tag was selected earlier in this module.
Next, define which agent to use for importing
the versions.
22 © Copyright IBM Corporation 2015
Version import overview
23 © Copyright IBM Corporation 2015
Version import overview
After you click System Settings, to the left you see
General Settings, and near the bottom there is an
entry for Agent for Version Imports. Choose the
agent to use to import the versions. Typically the agent
is on the same computer where the artifacts are
located. For help on installing agents, see the product
documentation for Agent Installation.
Check the next slide for a screen capture.
24 © Copyright IBM Corporation 2015
Version import overview
25 © Copyright IBM Corporation 2015
Version import overview
As you can see, we have a file located in this directory:
/tmp/artifacts
The file is called myApp.ear.
This file will be imported into IBM UrbanCode Deploy.
Next, you import the file.
26 © Copyright IBM Corporation 2015
Version import overview
To import the file, you must return to the Component.
Click the Components tab, and then click the
component that you created. You see this page:
27 © Copyright IBM Corporation 2015
Version import overview
Next, click the Versions tab, and then click Import
new Versions. You see this page:
28 © Copyright IBM Corporation 2015
Version import overview
In the Version Name field, define the name of the
version to import.
For example, enter 1.3.0.4.
Then, click Save.
29 © Copyright IBM Corporation 2015
Version import overview
You see the imported version.
30 © Copyright IBM Corporation 2015
Version import overview
By clicking the new version, you see the files that were
imported under the Artifacts section.
31 © Copyright IBM Corporation 2015
Component processes
After you import a version, you define a process for
how to deploy that version. The idea is to create a
repeatable process that can be reused as new versions
of the component are developed.
32 © Copyright IBM Corporation 2015
Component processes
First, go back to the component, and click the Process
tab.
33 © Copyright IBM Corporation 2015
Component processes
Next, click Create New Process, and name the
process. For example, type Deploy.
34 © Copyright IBM Corporation 2015
Component processes
You also see a few other fields:
Process Type: This value determines how the
component handles updating the inventory in
UrbanCode Deploy. For more information, see
Inventory Management.
Inventory Status: This value is the status to be applied
to the inventory. Typically, you use the default value,
Active.
35 © Copyright IBM Corporation 2015
Component processes
The Default Working Directory: This value is the location
from which the agent runs the process on the target
computer. By default, you see this entry:
${p:resource/work.dir}/${p:component.name}
This location is a property that resolves to the agent
installation location on the target server.
For example, the property resolves to this value:
/opt/ibm-ucd/agent/var/work/exampleComp
36 © Copyright IBM Corporation 2015
Component processes
Required Role: Set this value to restrict access to a
specific role of users who can run this process. For
more information, see the Security module in the
course or in the documentation.
Finally, click Save.
37 © Copyright IBM Corporation 2015
Component processes
Now you can see the process.
38 © Copyright IBM Corporation 2015
Component processes
Next, click the new process. Click the word Deploy.
This action takes you to the graphical design process
editor. Here, you define the automation for the process.
See the next slide.
39 © Copyright IBM Corporation 2015
Component processes
40 © Copyright IBM Corporation 2015
Component processes
To the left you see the Step Palette. The palette
includes the available automation steps to drag onto
the process editor field. The steps that are available are
determined by the plug-ins that have been loaded into
UrbanCode Deploy. A full list of plug-ins can be found
here at this address:
https://developer.ibm.com/urbancode/plugins/
41 © Copyright IBM Corporation 2015
Component processes
To the right, you see the START and FINISH blocks.
These determine the start and end points of the
automation process.
The next step is to create a simple process to copy the
file to the target server.
42 © Copyright IBM Corporation 2015
Component processes
First, find the Download Artifacts step in the palette.
43 © Copyright IBM Corporation 2015
Component processes
Click the Download Artifacts step, and drag it
between the START and FINISH steps.
You see the step editor. This is depicted on the next
slide.
44 © Copyright IBM Corporation 2015
Component processes
45 © Copyright IBM Corporation 2015
Component processes
When you drag a step into the process editor, you can
edit the fields for that step. The Download Artifacts
step is prepopulated with information that you can use.
Simply save this step as is. The fields define the
inclusion of all files to be downloaded from the
component version (**/*).
46 © Copyright IBM Corporation 2015
Component processes
Click Save for the step. You see the step in the middle
of the process designer.
Next, connect the START box to the Download
Artifacts step. Then, connect the Download Artifacts
step to the FINISH box.
47 © Copyright IBM Corporation 2015
Component processes
If you hover your mouse pointer over the START box,
you see a blue circle that includes an arrow.
Click that arrow, and drag it to the
Download Artifacts step to connect the two.
48 © Copyright IBM Corporation 2015
Component processes
The two steps are connected:
49 © Copyright IBM Corporation 2015
Component processes
Next, connect the Download Artifacts step to the
FINISH box in the same way as you did before.
50 © Copyright IBM Corporation 2015
Component processes
Notice that this line has a green circle with a white
check mark inside it. This mark indicates the direction
to go if the Download Artifacts step is complete. You
can click the green circle to cycle through other options.
51 © Copyright IBM Corporation 2015
Component processes
The red circle indicates the direction to go if the
previous step fails. The gray circle indicates
that you want the process to follow a specific
path regardless of whether the step passes or fails.
52 © Copyright IBM Corporation 2015
Component processes
Finally, save the process. To save your process, click
the diskette icon at the top of the step palette.
53 © Copyright IBM Corporation 2015
Component templates
Ideally, you do not want to create new component
processes and duplicate configurations every time that
you add a component. For this reason, there are
component templates. Now that you are familiar with
how to create a component and the working parts of a
component, the next step is to look at component
templates.
54 © Copyright IBM Corporation 2015
Component templates
Click the main Components tab in the upper left, and
then click Templates.
55 © Copyright IBM Corporation 2015
Component templates
You see a complete list of the available component
templates.
56 © Copyright IBM Corporation 2015
Component templates
Click Create New Component Template,
name the template, and then click Save.
57 © Copyright IBM Corporation 2015
Component templates
Examine the component template and notice how
similar it is to a component. The component template
has all the same attributes as a defined component,
except for versions and a few others.
The idea is to design a component template with the
corresponding processes. Then, when you create a
component you can simply choose your template and
import the version.
58 © Copyright IBM Corporation 2015
Component templates
Organizations create templates for processes that are
used throughout teams and organizations. For
example, if an organization deploys applications to
IBM® WebSphere® Application Server or Tomcat, they
might create a WebSphere template and a Tomcat
template. These templates define the processes for
deploying applications to the application servers.
When they want to create a component to be deployed
to WebSphere Application Server or Tomcat, they can
reuse the template.
59 © Copyright IBM Corporation 2015
Summary
You are familiar with how to complete these tasks:
• Import artifacts to create a component
• Add versions to components
• Create component processes
• Create component templates

More Related Content

PDF
Abhishek Kumar - Resume - Software Engineer
PDF
DevOps: una breve introducción
PPTX
PPT
Adop and maintenance task presentation 151015
PPT
RUP VS RAD Methodology
PPT
Sdlc model
PDF
Analytics with Apache Superset and ClickHouse - DoK Talks #151
DOCX
Dilish Pareed CV-Senior Electrical Engineer-construction,consultant
Abhishek Kumar - Resume - Software Engineer
DevOps: una breve introducción
Adop and maintenance task presentation 151015
RUP VS RAD Methodology
Sdlc model
Analytics with Apache Superset and ClickHouse - DoK Talks #151
Dilish Pareed CV-Senior Electrical Engineer-construction,consultant

What's hot (20)

DOCX
Neelakandan resume cctv
PPTX
system development life cycle
PDF
IEEE 1471-2000: Documento de arquitectura de software
PPTX
Software process
PPT
Software Engineering (Requirements Engineering & Software Maintenance)
PDF
OOW15 - Getting Optimal Performance from Oracle E-Business Suite
PPTX
Turnkey Network Services - Aviat Networks
PDF
SRS for student database management system
DOCX
software engineering.docx
PPTX
Software Process Models
PPTX
MongoDB: Prós, Contras e Showcases.
PDF
Software Maintenance and Evolution
DOCX
System administrator resume format
PDF
Modelo evolutivo
PPTX
Lecture 03 Software Risk Management
PDF
IO Resource Management on Exadata
PDF
Fases de un proyecto de desarrollo de software
PDF
Empowering Your Java Applications with Quarkus. A New Era of Fast, Efficient,...
DOC
Sabeer 8 yrs of experience it support engineer cv
Neelakandan resume cctv
system development life cycle
IEEE 1471-2000: Documento de arquitectura de software
Software process
Software Engineering (Requirements Engineering & Software Maintenance)
OOW15 - Getting Optimal Performance from Oracle E-Business Suite
Turnkey Network Services - Aviat Networks
SRS for student database management system
software engineering.docx
Software Process Models
MongoDB: Prós, Contras e Showcases.
Software Maintenance and Evolution
System administrator resume format
Modelo evolutivo
Lecture 03 Software Risk Management
IO Resource Management on Exadata
Fases de un proyecto de desarrollo de software
Empowering Your Java Applications with Quarkus. A New Era of Fast, Efficient,...
Sabeer 8 yrs of experience it support engineer cv
Ad

Viewers also liked (20)

PPTX
UrbanCode Deploy course and product overview slides
PPT
Module 1: Overview of Rational Team Concert
PPTX
DMT-2467 Like the Features in Rational DOORS 9? Come Check Them Out in DOORS...
PDF
IBM Rational Developer for System z Quick Start Sales Presentation
PPT
Deployment module slides
PDF
IBM UrbanCode Deploy Quick Start Service Offering
PPT
Application slides
PPT
RELM Overview
PDF
Token Deployment Services Offerings from Rational Lab Services
PDF
Assisted deployment services offering overview
PPT
Taking agile development to enterprise scale in a mixed tool environment with...
PDF
Overview of Rational Services Offerings
PPT
Resources slides
PDF
Agile ALM Virtual Study Group Session 2 - Backlog management
PDF
Introduction slides for discovery and deployment planning workshop
PDF
Agile ALM Virtual Study Session 3 - Sprint activities
PPT
Appendix A: Introduction to Collaborative Lifecycle Management
PPT
Module 4: Working with Builds
PPTX
Steer at the Team Level with Rational Team Concert
UrbanCode Deploy course and product overview slides
Module 1: Overview of Rational Team Concert
DMT-2467 Like the Features in Rational DOORS 9? Come Check Them Out in DOORS...
IBM Rational Developer for System z Quick Start Sales Presentation
Deployment module slides
IBM UrbanCode Deploy Quick Start Service Offering
Application slides
RELM Overview
Token Deployment Services Offerings from Rational Lab Services
Assisted deployment services offering overview
Taking agile development to enterprise scale in a mixed tool environment with...
Overview of Rational Services Offerings
Resources slides
Agile ALM Virtual Study Group Session 2 - Backlog management
Introduction slides for discovery and deployment planning workshop
Agile ALM Virtual Study Session 3 - Sprint activities
Appendix A: Introduction to Collaborative Lifecycle Management
Module 4: Working with Builds
Steer at the Team Level with Rational Team Concert
Ad

Similar to UCD components (20)

PPT
Components module slides
PPT
Application module slides
PDF
building-a-fdm-application-for-a-hfm-target
DOC
Components lab
DOC
Components lab
PPTX
Overview
PPTX
Streamlining React Component Development and Sharing with bit.pptx
PDF
Homestead demo
DOC
Applications lab
DOC
Applications lab
PDF
Installation of PC-Lint and its using in Visual Studio 2005
PDF
Bpc 10.0 NW Mass User Management tool
PDF
Continuous Delivery in the Enterprise - with IBM UrbanCode
PDF
Upgrade to IBM z/OS V2.4 technical actions
PDF
Upgrading to z_OS V2R4 Part 02 of 02.pdf
PDF
Ad basic tech_workshop
PPTX
Magento Meetup New Delhi- Console
PDF
Populating your domino directory or any domino database with tivoli directory...
PPTX
M365 global developer bootcamp 2019 PA
PPTX
M365 global developer bootcamp 2019
Components module slides
Application module slides
building-a-fdm-application-for-a-hfm-target
Components lab
Components lab
Overview
Streamlining React Component Development and Sharing with bit.pptx
Homestead demo
Applications lab
Applications lab
Installation of PC-Lint and its using in Visual Studio 2005
Bpc 10.0 NW Mass User Management tool
Continuous Delivery in the Enterprise - with IBM UrbanCode
Upgrade to IBM z/OS V2.4 technical actions
Upgrading to z_OS V2R4 Part 02 of 02.pdf
Ad basic tech_workshop
Magento Meetup New Delhi- Console
Populating your domino directory or any domino database with tivoli directory...
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019

More from IBM Rational software (16)

PPTX
Dmt 5899 workshop - Learn to Collaborate, Trace, Review and Reuse Your Requir...
DOC
Resource lab
PDF
IBM InterConnect Speaker Proposal Tips
PDF
Factors to consider when starting a brand-new requirements management project...
PDF
IBM DevOps Announcements - June 2014
PDF
Rational consulting café to go menu
PDF
Lab3 RTC Source Control
PDF
Lab2 RTC Work Items
PDF
Lab4 RTC Builds
PDF
Lab1 RTC Overview
PDF
Lab5 RTC reports and Dashboards
PPT
Module 3: Working with Jazz Source Control
PPT
Module 2: Managing Work Items in Rational Team Concert
PPT
Module 5: Reports and Dashboards
PDF
Foundations of the Scaled Agile Framework: Be Agile. Scale Up. Stay Lean. And...
PPT
ClearCase Version Importer - a migration tool to Rational Team Concert SCM
Dmt 5899 workshop - Learn to Collaborate, Trace, Review and Reuse Your Requir...
Resource lab
IBM InterConnect Speaker Proposal Tips
Factors to consider when starting a brand-new requirements management project...
IBM DevOps Announcements - June 2014
Rational consulting café to go menu
Lab3 RTC Source Control
Lab2 RTC Work Items
Lab4 RTC Builds
Lab1 RTC Overview
Lab5 RTC reports and Dashboards
Module 3: Working with Jazz Source Control
Module 2: Managing Work Items in Rational Team Concert
Module 5: Reports and Dashboards
Foundations of the Scaled Agile Framework: Be Agile. Scale Up. Stay Lean. And...
ClearCase Version Importer - a migration tool to Rational Team Concert SCM

Recently uploaded (20)

PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PDF
Pre independence Education in Inndia.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
Cardiovascular Pharmacology for pharmacy students.pptx
Renaissance Architecture: A Journey from Faith to Humanism
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPH.pptx obstetrics and gynecology in nursing
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharma ospi slides which help in ospi learning
Abdominal Access Techniques with Prof. Dr. R K Mishra
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
The Final Stretch: How to Release a Game and Not Die in the Process.
Pre independence Education in Inndia.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
2.FourierTransform-ShortQuestionswithAnswers.pdf

UCD components

  • 1. © Copyright IBM Corporation 2015 Essentials of UrbanCode Deploy QQ147 Components
  • 2. 2 © Copyright IBM Corporation 2015 Agenda What are components? Aspects of a component Creating a component Importing Component versions Component processes Component templates
  • 3. 3 © Copyright IBM Corporation 2015 Objectives After completing this module you are able to: •Import artifacts to create a component •Set environment properties on components •Add versions to the components •Create component processes •Create component templates
  • 4. 4 © Copyright IBM Corporation 2015 What are components? • Components represent deployable items along with user-defined processes that operate on them. For example: • A typical Java-™ Platform, Enterprise Edition application typically has three components (application, database, and web components). • Large applications might have many more.
  • 5. 5 © Copyright IBM Corporation 2015 Features of a component The main features that make up a component are as follows: • Source configuration • Component versions • Component properties • Component processes
  • 6. 6 © Copyright IBM Corporation 2015 Creating a component To create a component: 1. Choose the Components tab. 2. Create New Component.
  • 7. 7 © Copyright IBM Corporation 2015 Creating a component You see this page:
  • 8. 8 © Copyright IBM Corporation 2015 Creating a component The fields on the form: Name: Provide a name for the component. It might reflect the item or tier of the application to be deployed. Description: An optional field to elaborate on the contents of this component.
  • 9. 9 © Copyright IBM Corporation 2015 Creating a component Teams: With this field, you can associate a team with a component. To learn more about teams, see the security module or refer to the documentation. Template: Components can be created from a template. Templates are covered later in this module.
  • 10. 10 © Copyright IBM Corporation 2015 Creating a component Component Type: You can select one of two types of components, Standard and z/OS. Choose z/OS only if this component is intended to be deployed to a mainframe.
  • 11. 11 © Copyright IBM Corporation 2015 Creating a component Source Config Type: In this field, you can define how artifacts are associated with a component. Several available choices come with the product. The available choices are defined by source configuration plug-ins. Each plug-in defines a single type of artifact. You can import artifacts manually or have IBM UrbanCode Deploy import them automatically.
  • 12. 12 © Copyright IBM Corporation 2015 Source config type file system
  • 13. 13 © Copyright IBM Corporation 2015 Creating a component Use Base Path for importing a file system. In the field, you specify where to get the files for importing. The files are moving from the file system to the UrbanCode Deploy artifact repository for storage until they are deployed.
  • 14. 14 © Copyright IBM Corporation 2015 Creating a component Import Versions Automatically: If this option is selected, IBM UrbanCode Deploy polls the Source Config for new versions. Copy to Codestation: Select this option, if you want to store the component versions in the IBM UrbanCode Deploy repository (Codestation).
  • 15. 15 © Copyright IBM Corporation 2015 Creating a component Default Version Type: Two version types are available: full and incremental. Choose Full, if the contents of the component versions represent the entire component. Choose Incremental, if the contents are a subset of the full component. For this course you select Full versions.
  • 16. 16 © Copyright IBM Corporation 2015 Creating a component Import version settings: These settings determine which agent is responsible for importing the versions into IBM UrbanCode Deploy. Typically the first selection is fine.
  • 17. 17 © Copyright IBM Corporation 2015 Creating a component Inherit Cleanup Settings: Select this check box to inherit the cleanup settings that are defined for the server. If not, you must define your own cleanup policies. Run process after creating a new version: Select this check box to launch a process immediately after the IBM UrbanCode Deploy system recognizes a new version.
  • 18. 18 © Copyright IBM Corporation 2015 Creating a component Upon completion, your form looks like this illustration:
  • 19. 19 © Copyright IBM Corporation 2015 Creating a component Next, click Save, and you see your new component.
  • 20. 20 © Copyright IBM Corporation 2015 Version import overview After learning how to create a component, you learn how to create a component version. Components can have many component versions. These versions are deployed later. For the example, the File System Source Config type is used. Before importing the versions, you must check a few things first.
  • 21. 21 © Copyright IBM Corporation 2015 Version import overview Recall that Use the system’s default version import agent/tag was selected earlier in this module. Next, define which agent to use for importing the versions.
  • 22. 22 © Copyright IBM Corporation 2015 Version import overview
  • 23. 23 © Copyright IBM Corporation 2015 Version import overview After you click System Settings, to the left you see General Settings, and near the bottom there is an entry for Agent for Version Imports. Choose the agent to use to import the versions. Typically the agent is on the same computer where the artifacts are located. For help on installing agents, see the product documentation for Agent Installation. Check the next slide for a screen capture.
  • 24. 24 © Copyright IBM Corporation 2015 Version import overview
  • 25. 25 © Copyright IBM Corporation 2015 Version import overview As you can see, we have a file located in this directory: /tmp/artifacts The file is called myApp.ear. This file will be imported into IBM UrbanCode Deploy. Next, you import the file.
  • 26. 26 © Copyright IBM Corporation 2015 Version import overview To import the file, you must return to the Component. Click the Components tab, and then click the component that you created. You see this page:
  • 27. 27 © Copyright IBM Corporation 2015 Version import overview Next, click the Versions tab, and then click Import new Versions. You see this page:
  • 28. 28 © Copyright IBM Corporation 2015 Version import overview In the Version Name field, define the name of the version to import. For example, enter 1.3.0.4. Then, click Save.
  • 29. 29 © Copyright IBM Corporation 2015 Version import overview You see the imported version.
  • 30. 30 © Copyright IBM Corporation 2015 Version import overview By clicking the new version, you see the files that were imported under the Artifacts section.
  • 31. 31 © Copyright IBM Corporation 2015 Component processes After you import a version, you define a process for how to deploy that version. The idea is to create a repeatable process that can be reused as new versions of the component are developed.
  • 32. 32 © Copyright IBM Corporation 2015 Component processes First, go back to the component, and click the Process tab.
  • 33. 33 © Copyright IBM Corporation 2015 Component processes Next, click Create New Process, and name the process. For example, type Deploy.
  • 34. 34 © Copyright IBM Corporation 2015 Component processes You also see a few other fields: Process Type: This value determines how the component handles updating the inventory in UrbanCode Deploy. For more information, see Inventory Management. Inventory Status: This value is the status to be applied to the inventory. Typically, you use the default value, Active.
  • 35. 35 © Copyright IBM Corporation 2015 Component processes The Default Working Directory: This value is the location from which the agent runs the process on the target computer. By default, you see this entry: ${p:resource/work.dir}/${p:component.name} This location is a property that resolves to the agent installation location on the target server. For example, the property resolves to this value: /opt/ibm-ucd/agent/var/work/exampleComp
  • 36. 36 © Copyright IBM Corporation 2015 Component processes Required Role: Set this value to restrict access to a specific role of users who can run this process. For more information, see the Security module in the course or in the documentation. Finally, click Save.
  • 37. 37 © Copyright IBM Corporation 2015 Component processes Now you can see the process.
  • 38. 38 © Copyright IBM Corporation 2015 Component processes Next, click the new process. Click the word Deploy. This action takes you to the graphical design process editor. Here, you define the automation for the process. See the next slide.
  • 39. 39 © Copyright IBM Corporation 2015 Component processes
  • 40. 40 © Copyright IBM Corporation 2015 Component processes To the left you see the Step Palette. The palette includes the available automation steps to drag onto the process editor field. The steps that are available are determined by the plug-ins that have been loaded into UrbanCode Deploy. A full list of plug-ins can be found here at this address: https://developer.ibm.com/urbancode/plugins/
  • 41. 41 © Copyright IBM Corporation 2015 Component processes To the right, you see the START and FINISH blocks. These determine the start and end points of the automation process. The next step is to create a simple process to copy the file to the target server.
  • 42. 42 © Copyright IBM Corporation 2015 Component processes First, find the Download Artifacts step in the palette.
  • 43. 43 © Copyright IBM Corporation 2015 Component processes Click the Download Artifacts step, and drag it between the START and FINISH steps. You see the step editor. This is depicted on the next slide.
  • 44. 44 © Copyright IBM Corporation 2015 Component processes
  • 45. 45 © Copyright IBM Corporation 2015 Component processes When you drag a step into the process editor, you can edit the fields for that step. The Download Artifacts step is prepopulated with information that you can use. Simply save this step as is. The fields define the inclusion of all files to be downloaded from the component version (**/*).
  • 46. 46 © Copyright IBM Corporation 2015 Component processes Click Save for the step. You see the step in the middle of the process designer. Next, connect the START box to the Download Artifacts step. Then, connect the Download Artifacts step to the FINISH box.
  • 47. 47 © Copyright IBM Corporation 2015 Component processes If you hover your mouse pointer over the START box, you see a blue circle that includes an arrow. Click that arrow, and drag it to the Download Artifacts step to connect the two.
  • 48. 48 © Copyright IBM Corporation 2015 Component processes The two steps are connected:
  • 49. 49 © Copyright IBM Corporation 2015 Component processes Next, connect the Download Artifacts step to the FINISH box in the same way as you did before.
  • 50. 50 © Copyright IBM Corporation 2015 Component processes Notice that this line has a green circle with a white check mark inside it. This mark indicates the direction to go if the Download Artifacts step is complete. You can click the green circle to cycle through other options.
  • 51. 51 © Copyright IBM Corporation 2015 Component processes The red circle indicates the direction to go if the previous step fails. The gray circle indicates that you want the process to follow a specific path regardless of whether the step passes or fails.
  • 52. 52 © Copyright IBM Corporation 2015 Component processes Finally, save the process. To save your process, click the diskette icon at the top of the step palette.
  • 53. 53 © Copyright IBM Corporation 2015 Component templates Ideally, you do not want to create new component processes and duplicate configurations every time that you add a component. For this reason, there are component templates. Now that you are familiar with how to create a component and the working parts of a component, the next step is to look at component templates.
  • 54. 54 © Copyright IBM Corporation 2015 Component templates Click the main Components tab in the upper left, and then click Templates.
  • 55. 55 © Copyright IBM Corporation 2015 Component templates You see a complete list of the available component templates.
  • 56. 56 © Copyright IBM Corporation 2015 Component templates Click Create New Component Template, name the template, and then click Save.
  • 57. 57 © Copyright IBM Corporation 2015 Component templates Examine the component template and notice how similar it is to a component. The component template has all the same attributes as a defined component, except for versions and a few others. The idea is to design a component template with the corresponding processes. Then, when you create a component you can simply choose your template and import the version.
  • 58. 58 © Copyright IBM Corporation 2015 Component templates Organizations create templates for processes that are used throughout teams and organizations. For example, if an organization deploys applications to IBM® WebSphere® Application Server or Tomcat, they might create a WebSphere template and a Tomcat template. These templates define the processes for deploying applications to the application servers. When they want to create a component to be deployed to WebSphere Application Server or Tomcat, they can reuse the template.
  • 59. 59 © Copyright IBM Corporation 2015 Summary You are familiar with how to complete these tasks: • Import artifacts to create a component • Add versions to components • Create component processes • Create component templates

Editor's Notes

  • #5: Components are like containers for artifacts. The PetStore course lab has 3 components.
  • #6: For the source config it just defines the source type. The source types used to be baked in and now they are plug-ins. Some of the component fields depend on the source configuration plug-in. Version - Incremental and complete versions. Component properties can be anything you want them to be. Component processes – These do 90% of the work on the component. The application does the other 10% of the work on the component. You run an application to deploy a component. The application process does some of the directing and stuff like that.
  • #7: Note that components may be manually imported into UrbanCode Deploy. In the class lab we import the components.
  • #8: After you choose the source config type the form changes depending on the source config plugin. You will get different fields. When you create the component, component artifacts go into a repository – if you use codestation (it comes with UrbanCode Deploy, that is where the components go). Usually a component consists of artifacts. If you have file type as the source config type you need to then specify a base path where to find the files. There are about 12 source config types. Only 2 types of component – with zOS the file structures and coding change. But if you are not putting it on the mainframe everything else is the same. A component can be considered a container for artifacts and the processes that operate on them. If you want to use a template you use it there. Then you get a type of component with pre-defined attributes. With a template you can already have processes pre-defined.
  • #9: Some fields are shared by all components but some fields are unique depending on the component’s source.
  • #12: Source Config Type is a way of specifying where you get artifacts. When artifacts are imported automatically, IBM UrbanCode Deploy periodically checks the artifacts for changes. Whenever changes are detected, a new component version is created. You can control how often artifacts are checked. Source could be DB tables—not every artifact is a file.
  • #14: The example used here is of importing a "file system." By importing a file system, the component gets the files it will use. Import implies movement. That's exactly what is happening. The files are moving from the file system to the UrbanCode Deploy CodeStation artifact repository, where they are stored until they are moved again (deployed). In the deployment process, you specify another directory, which is called a working directory, that defines where to place the artifacts during the deployment.
  • #15: Usually you do not import versions automatically – you don’t always want new versions. The time interval for polling is set in system settings. You normally do copy to codestation unless you have your own repository. If you use codestation you select copy to codestation.
  • #16: There are two types of versions Full and Incremental. With an incremental version the agent compares the incremental version to the inventory and deploys only the changed artifacts. It's not practicle to redeploy entire databases, for instance  Incrementals are used a lot with databases because you do not want to change the whole database. You do not want to replace a whole database every time you have a change. Incrementals are often the ones that are rolled back.
  • #17: You have to use some agent to import stuff into codestation. You set this up – you pick an agent to use by default. You can pick an agent with a deployment or by default it uses the system agent. If you choose the second you specify the agent – you are forced to pick an agent. 3rd is you have a bunch of agents and it doesn’t matter which agent does the work - you can select the agent by a tag.
  • #18: You usually check the inherit clean up box. That is to use the default behavior. This has to do with how long versions are kept in codestation. You can change the length of time the versions stay in codestation in the system settings. The default is forever. If you have lots of versions that is probably not what you want to do. By default it keeps every version forever. Run process after creating a new version – this is not typically used, normally you would not do this. But if you want you could run a generic process and the trigger might be any time you import a new version. If you have automatic import – it’s a generic process that is kicked off when there is a new version in codestation.
  • #21: This is about creating a component version. This is how you manually create a version of a component. You defined parameters of a component and here you give it artifacts. You defined where the artifacts were located but you haven’t loaded the artifacts into codestation yet. This is how you get them into codestation. If we had selected auto version import it would have gone to get the versions. It is better to have a manual import to become familiar with process. In the JPetStore lab there is a manual import.
  • #31: Artifacts are not always files – could be a database. It will put all the artifacts into codestation and they will all be in component version 1.3.0.4.
  • #34: There are different types of component processes, deployment is the most commonly used. Uninstall takes a component off a resource. It leaves the component but it takes it off a resource. Operational - does not change actual inventory but changes properties. An operational process does not add anything new to the environment. Operational could do something to the environment like start a server.
  • #35: Process type - After you import a version, you define the process type that deploys it. The idea is to create a repeatable process that can be reused as new versions of the component are developed. Inventory status - You can make your own statuses – you could have a complicated deployment that goes through different stages in which case you could create your own statuses and direct UCD to use the different statuses but by default there is only one – active.
  • #36: This is the location where the agent is going to do the work. The property resolves to an actual spot where the component process does the work.
  • #37: This is security – you restrict access to the process by roles that are defined in security.
  • #40: The plugins on the left are shipped with the product.
  • #43: You do not always have a download artifacts step. But for a deployment process it is the most commonly used step – the agent pulls the artifacts from codestation into the working directory. The default working directory is the location we talked about earlier on slide 35 that the property resolved to.
  • #44: To the left you see the Step Palette. The palette provides automation steps that you can drag onto the process editor. The available steps are determined by the installed plug-ins. Some plug-ins are shipped with the product and you can install others.
  • #54: Component templates allow you to reuse component processes on a different component – or you could define the properties for any component you create. It could include the component processes or it could not.