deployment Questions

CM, ALM Engineer in Toronto, ON - web, tfs, sql - [email protected]

I am using the JHSDK jar available in ths installation directory of CA to write a java program for an automation project.

 

I am using the below Java code to select the packages from ACEDEV13.06.00.00 from SW Development view and promoting it to next stage 'Integration Test(AIT)'.

 

Java Code:

 

JCaContext context = harvest.getContext();

boolean approve = context.setApprove("Approve"); //Exception @ this line is E0309000d: ERROR: Could not get Process.

boolean promote = context.setPromote("Promote");

 

//Setting the Approval

CaApprove jcaApprove = context.getApprove();

jcaApprove.setApprove(true);

jcaApprove.setDescription("Approved Desc");

jcaApprove.execute();

 

//Setting the Promote

JCaPromote jcaPromoteObj =  context.getPromote();

System.out.println(" getToStateName "+jcaPromoteObj.getToStateName());

System.out.println(" getToStateObjId "+jcaPromoteObj.getToStateObjId());

 

jcaPromoteObj.execute();

 

 

Exception I get :

com.ca.harvest.jhsdk.hutils.JCaHarvestException: E03090027: ERROR: Could not get Approve Process from Context.

com.ca.harvest.jhsdk.hutils.JCaHarvestException: E03090010: ERROR: Could not get Promote Process from Context.

 

Do I need to set any mode to context or harvest object to make the Promote process to work. Kindly help me with this.

Hello,

Our VOB is of size size 52GB, 10years old, mounted on Solaris OS and using by 400 Users. From the past One Year, we observed that VOB elements are keep on corrupting with "^D" or "text_file_delta" error. We are unable to do diff with predecessor version, not able to make Builds because of corrupted files. Even we are unable to count Source Lines of Code also. I forgot to mention that, we are using ClearCase ver.6.0.

Last 8 months back, we raised a PMR, IBM resolved some file elements using "checkvob" and by remotely accessing they used some IBM scripts to solve the issue. Finally, by the end of March. We and IBM Technical Support Engineers resolved all corrupted file elements issue. Recently, we observed that 2 (two) of the files got corrupted again and VOB is not in Sync with two of our replicas. Problem started again.

Please let me know, why VOB file elements corrupts often? Is it because of, if any user uses some third party tools for his Coding/Development in VOB? We CMs follow strict polocies, some of the file elements are not even loading into VOB (Snapshot views), saying "size got exceeded". This became a big mess for us. Now, Developers are making Builds by hijacking the files. We know that, this is not a Good Practise. Please someone of you can help us in this regard. PFA, VOB Errors. Thanks in advance!

Best Regards/Sebastian

Hello Friends,

Please let me know, what exactly is a "Virtual VOB" in ClearCase. How to make it? implement the polocies? Do we require any seperate SW like VMVare to create a Virtual VOB? I am working in a Telecom Based Company and we are about to get a new Project, there our Project Manager requirement is to create a "Virtual VOB" using ClearCase. We will go in details in next month. Before that, I want to know what it is, why it is used for, how to create it. Thanks for all your answers for my Query.

Best Regards/Sebastian.

 

By BenN - April 19, 20131 Answer

Hi all,

We are currently implementing agile, and have a fully realised development cycle in place.  I have now been tasked with implementing a deployment tech stack.  We are currently running a Subversion repository, feeding in to a Jenkins / Maven continuous integration platform, and an Artefactory Repository for compiled code.  We then have no path out of Artefactory (at the moment, the devs are packaging up complete WARs of the environment and copying manually to the target area).  I want to implement a continuous deployment solution, that can be used by developers for small fixes and by tech leads for large releases.

I have looked around but am struggling to find a tool to realise this that will integrate with our current tech (everything seems to want to replace Jenkins etc with their own agent based build / test / artifact solution).  Does anyone know of software that will allow me to automate the movement of compiled code from our dev platform to  our test environment, then on to prod, setting rules and checks along the way? 

Many thanks in advance,

Ben

Hello All, 

We call deploy scripts(cmd files) through our own make xml files from cruisecontrol. In the deploy CMD files there is error level return explicitly mentioned. But still cruise control does not catch the errors. Logs show it as failed but reports sucessfull. Below is how we call deploy scripts. 

1. from cruisecontrol config.xml we call our own xml file like below

<schedule  >

 <ant anthome="C:\bea103\modules\org.apache.ant_1.6.5" 

buildfile="V:\xxx\xxx\xxxx\mybuild.xml"

time="0330"

/>        

</schedule>

2. and that mybuild.xml content is as below 

<target name="xxxx">

       <exec dir="V:\xxx\xxx\xxx" executable="cmd.exe" output="checkETSApps.txt">

    <arg line="/c deploy.cmd"/>

  </exec>

</target>

3. and deploy.cmd content is as below 

call deploybackend.cmd(this telnets with servers)

IF ERRORLEVEL 1 EXIT /B 1

What are we missing here. Please advise. 

 

By Jirong Hu - March 17, 20132 Answers

After the automated release build, we stage the versioned (with build tag) build result/deployment unit in a network shared drive. Normally I see people do it setup a web page to list these deployment units, then have a couple of buttons next them. When a button called "deploy to DEV" is click, the deployment unit is copied to the target DEV sever and got deployed.

There are lots of build automation tools to generate the deployment unit, but what tools can do the rest? I mean automatically list these deployment units and have buttons, etc.?

Thanks

Jirong

By Jason van Wyk - March 14, 20131 Answer

Could someone assit me with a Script or tables that will assist me in determining what actions  where performed by a user within SCM. I know that one can get this information on the users pc with the .CASCM file but unfortunately the user is not availale at this point in time.....

Is there an alternative to this?

By Bob Aiello - March 10, 20137 Answers

Hi everyone,

my esteemed colleague Marc Bools and I have started working on bringing back the CM Wiki and we want you to help us with the design and requirements of a new CM Wiki!!!

Here is a hight level list of the topics from the old wiki. This is your chance to help!!

Topics you will find in the CM web 

Definitions: 

  • Configuration Management 
  • Software Configuration Management 
  • Build Management 
  • Change Management 

Tools: 

  • CM Tools - Software and tools for Change and Configuration Control - HCM/SCM 
  • CM Integrations - Integration of CM tools with other tools 
  • Frequently Asked Questions 

Concepts and theories: 

  • ConfigurationManagementBodyOfKnowledge (a.k.a. CMBoK ™) 
  • CM versus SCM - Thoughts on the differences between the terms CM and SCM 
  • CM Metrics - What you could gain in time and money when using CM. 
  • CM Metaphors and Analogies -- metaphors and analogies for describing CM 

Processes and practices: 

  • Agile Development and Agile SCM - Ideas on Agile Development and how it affects CM 
  • Configuration Management Process 
  • Change Management Process 
  • Branching and Merging for Parallel Development 
  • CM and Web Engineering 
  • CM and Databases 

Templates and Examples: 

  • CM Templates - Quick templates to help you start implementing a CM solution 

Vendors: 

  • TBD 

Other: 

  • Suite Vs Best Of Breed 
  • SCM Readings - Some recommended SCM books and papers 
  • History of CM 
  • WhosWhoInSCM  

Starting points

  • TBD 

What other topics should we include?? How do we provide more value from our new and improved CM Wiki.

Drop me a line and get involved!

Bob Aiello
Editor in Chief
[email protected]

Hi everyone,

as always we love to get YOUR input on which topics we should be covering in the coming months. 
Obviously, DevOps is hot, Cloud & Mobile are essential. We have had many issues dedicated to CM for Small Teams, Process and more process and tips and strategies for Build Engineers.

What topics would you like us to cover? What topics would you like to write about yourself??
(Hint - I will help you! - just contact me directly)

Bob Aiello
Editor in Chief
http://www.linkedin.com/in/BobAiello
[email protected]

Pages

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.