Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RAFW Promote mode

The WAS environment setup has naming standards wherein the server name changes from dev, test, QA and prod.

Is there a way the promote-target can be orchestrated from Build Forge UI, where the user has flexibility to promote the configuration (example, JDBC) from dev to test to qa and PROD by entering in the various server names.


In the current way, we are promoting configuration by creating separate projects for each environment. The specific values for the source cell, node, server are populated in the command line.

Thanks,

0 votes



3 answers

Permanent link
Sriram,

Are you attempting to have 1 generic project that can do promotion from any environment to any other environment? Or are you looking for still a promote project per RAFW env/cell that allows you to vary the source ( -opt source.env etc.) options?


--tim

0 votes


Permanent link
Sriram,

Are you attempting to have 1 generic project that can do promotion from any environment to any other environment? Or are you looking for still a promote project per RAFW env/cell that allows you to vary the source ( -opt source.env etc.) options?


--tim


Hi Tim, I am trying to setup generic libraries that can be used across environments. Here is an example and also assumptions

Assumptions
---------------

1) The source and destination environments are similar with number of nodes, servers and clusters.
2) The cell and node names are same, but the cluster and server names will change from environment to environment (dev, test, prod etc)

Library setup
---------------

If I take a standard config resource library, I can clone/copy it and attach at the end the promote specific parameters. I have made them into a drop down and text entry field, so users can pick the source environment.

The challenge is to substitute the cluster and server names in buildforge. I use the while loop to go through the nodes and use .drill to loop through the destination servers. But, I am not sure what I can do to substitute the source server and cluster names. Command below.

While loop

true(${BF_ITERATION}<=${NUMBER_OF_NODES})

.drill ${BEGIN_VARIABLE}NODE${BF_ITERATION}_SERVERS_ON_NODE${END_VARIABLE} exec "${RAFW_HOME}/bin/rafw${SCRIPT_EXT} -e ${ENVIRONMENT} -c ${CELL_NAME} -n ${BEGIN_VARIABLE}NODE${BF_ITERATION}_NODE_NAME${END_VARIABLE} -s $1 ${MODE} was_common_configure_server_all

-opt "source.env=dev1" -opt "source.cell=WASNetwork" -opt "source.node=node1" -opt "source.server=dev_server"

0 votes


Permanent link
Hi Tim, any ideas on this. In a simplistic sense, this would be a 3 level loop.
I can achieve the 2 levels of looping with the .drill and while. Not sure how I can go one more level deep.

Thanks,

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 25 '11, 1:19 p.m.

Question was seen: 7,458 times

Last updated: Apr 25 '11, 1:19 p.m.

Confirmation Cancel Confirm