Hi ,all
I want to do as following,but failed after the 3rd step! i give my Script , Deployment Configuration file and the result,
i am a new beginner and i need help!
thanks!
--------------------------------------------------------------------------
1. Install CPS on one machine
2. Install VSS on a different machine and create a project and load a small web application
3. Install Websphere on a different machine
4. Run configuration tool web application on a CPS machine. See the documentation on how to run the machine. Create config files for VSS and Websphere using configuration tools. Follow the instructions on the summary page.
5. After completing step 4 and login into Control Hub, create a new job using Provision workflow. It will kick off the run and you will see different workflow tasks for your job. After the job is finished, login into OD Admin and run Control Hub Reports to check the data for your deployment.
6. Check Websphere to see whether your web application is deployed properly.
7. Now make some changes to the files of the web application in the Clearcase and repeat step 5 and 6.
8. Now in Control Hub create new job using Rollback workflow template. See workflow status of this job. Once the job is done, we will run Control Hub Report in OD Admin and make sure reports display in a normal way.
-------------------------
<?xml version="1.0" encoding="GB2312" ?>
- <deploymentConfiguration>
<logRules maxBytes="32Mb" level="verbose" />
<localNode host="SUREKAM-MAO" timeout="" blockMaxWaitTime="" blockCheckInterval="" />
- <replicationFarmSet>
- <replicationFarm name="MYFARMNAME" quorum="">
<nodeRef useNode="MyLocalHost" />
</replicationFarm>
</replicationFarmSet>
- <definition name="MYDEFINITIONNAME">
- <source>
- <fileSystem name="VSS">
- <payload area="C:\Working" name="VSS">
- <pathSpecification>
<path name="C:\Program Files\Microsoft Visual Studio\VSS\srcsafe.ini" />
</pathSpecification>
- <payLoadRules>
<custom>D:\Interwoven\CPS\OpenDeployNG\adapters\payload\scm\vss\conf\VssCheckoutConfig.xml</custom>
<action name="deploy" />
</payLoadRules>
</payload>
</fileSystem>
</source>
- <target useReplicationFarm="Websphere">
<comparisonRules dateDifferent="yes" revert="no" ignoreAcls="yes" ignoreModes="no" ignoreUser="no" ignoreGroup="no" checksumCompare="no" />
<permissionRules amask="" omask="" directory="0755" file="0644" group="" user="" changeAccess="" setAccess="" />
- <odAdapterSet>
<odAdapter name="WebSphereAppServerAdapter" class="com.interwoven.od.adapter.delivery.appserver.websphere.IWODIBMAppSvrDeliveryAdapter" parameter="D:\Interwoven\CPS\OpenDeployNG\adapters\delivery\appserver\websphere\conf\WebSphereAppServerCfg.xml" async="no" />
</odAdapterSet>
<targetFilesystem area="d:\Interwoven\CPS\OpenDeployNG\tmp" />
- <replicationFarmLink>
<internal name="MYFARMNAME" />
</replicationFarmLink>
</target>
</definition>
- <deployment transactional="no">
<execDeploymentTask useDefinition="MYDEFINITIONNAME" />
</deployment>
</deploymentConfiguration>
------
VssCheckoutConfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vss SYSTEM "file:///D:/Interwoven/CPS/OpenDeployNG/adapters/payload/scm/vss/dtd/VssScm.dtd">
<!--
An Example Microsoft Visual SourceSafe "Checkout" command config file for your reference.
****************************************************************************************
Explanation of the attributes used by VSS Adapter for "Checkout" command:
name Name for this VSS configuration (Optional)
execPath Identifies VSS executable file path (Required)
serverPath Identifies a specific SRCSAFE.INI file (Required)
userName Identifies the user's name (Optional)
password Identifies the user's password (Optional)
passwordEncoded Specified if password provided is encoded (Optional)
localPath Copies a file to the specified folder, not to the current or working folder (Required)
autoResponse Instructs VSS to answer "yes" or "no" to all Yes or No questions (Optional)
comment Identifies the comment for checkout command
output Identifies the file name for the command output (Optional)
recursive Set to "yes" to recursively get an entire project list (Optional)
fileTimestamp Set local copy time to the current, last modified or last updated date and time (Optional)
writableFiles Instructs VSS to replaces write-only files or skip write-only files (Optional)
version Get project by specified version number (Optional)
date Get project by specified date (Optional)
label Get project by specified label (Optional)
itemPath VSS item. 1 or more itemPaths could be used as VSS project or file paths.
Note:
- The config file is a xml file following DTD definition defined in
<od-home>/adapters/payload/scm/vss/dtd/VssScm.dtd.
- If more than one attribute specidified in version, date and label attributes, returns the first
specified of version, date or label.
- The value of "comment" attribute could be specified in the following format:
text Uses the string text as the comment for all items.
@File.txt Uses the contents of File.txt as the comment for all items.
When the value of "comment" attribute is an empty string or attribute is not specified, no comment
is used for command.
- Use CLT odhome/bin/iwodpasscoder to encode the password when passwordEncoded attribute is set to "yes".
-->
<vss
name="VssConfig"
execPath="C:\Program Files\Microsoft Visual Studio\VSS\win32">
<vssCheckout
serverPath="\\192.19.17.49\E$\vss\"
userName="Leon"
password="111"
passwordEncoded="yes"
localPath="C:\Working\"
autoResponse="yes"
comment="Checkout Test"
output="C:\Working\vss.output"
recursive="yes"
fileTimestamp="modified"
writableFiles="replace"
version="1"
date="05-07-03"
<!--label="label Beta 1" -->
>
<vssItem itemPath="$/web application/mao"/>
</vssCheckout>
</vss>
--------------------------------------------------------------------------------------------------------------------------------
but the result is:
Start Deployment Failed
test
Failed to start deployment test Error: Unexpected error found! Please check log files for details!