Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step 1. Pre -step , set up workspace which you are going to use . Here I will take example for ruchi's instance on chocolate machine.
- export WORKSPACE=/root/ruchi/hudson
- echo $WORKSPACE
- Step 2. To replace dev.vdopia.com to qa.vdopia.com in all spring.properties files. ( This Change is necessary to establish DB connection with qa enviornmen)
- find $WORKSPACE -name "spring.properties" | xargs sed -i "s#app.jdbc.url=jdbc:mysql://dev.vdopia.com/adplatform#app.jdbc.url=jdbc:mysql://qa.vdopia.com/adplatform#g"
- Step 3. To change serve machine password in all spring.properties file.
- find $WORKSPACE -name "spring.properties" | xargs sed -i "s#app.jdbc.password=root123#app.jdbc.password=QA@1234#g"
- Step 4. To change desired port number in netty.config file.
- sed -i "s#hudsonPort=8080#hudsonPort=8068#g" $WORKSPACE/netty/src/main/resources/nettyConfig.properties
- Step 5. To set up log location in log4j.properties.
- sed -i "s#/tmp/hudson/logs/hudson.log#/tmp/hudson/logs/hudson_r.log#g" $WORKSPACE/netty/src/main/resources/log4j.properties
- Step 6. Change trackerconfig.properties file ( need to do this manually )
- Goto location ./ResponseGenerator/src/main/resources/. Open file TrackerConfig.properties
- Replace : Localhost by your URL in base URL & winBAse URL
- baseUrl=http://localhost/h/tracker/ will change something like baseUrl=http://ec2-54-90-16-143.compute-1.amazonaws.com:8058/h/tracker/
- winBaseUrl=http://localhost/h/win/ will change something like winBaseUrl=http://ec2-54-90-16-143.compute-1.amazonaws.com:8058/h/win/
- Step 7. Change cdn.properties. (need to do this manually if there are php changes )
- Goto location ./ResponseGenerator/src/main/resources/. Open file cdn.properties
- Replace: cdni.vdopia.com in cdn with <instance>.qa.vdopia.com
- Replace: serve.vdopia.com in referrer with <instance>serve.qa.vdopia.com
- *(<instance> refers to qa instance on which php tag is released)
Add Comment
Please, Sign In to add comment