Deploy libs and apps
print 'Conetando ao servidor .... '
connect('weblogic','welcome1','t3://localhost:10000')
print 'Bloqueando edição .... '
edit()
print 'Começando edição .... '
startEdit()
print 'Começando deploy .... '
try:
print 'Deployando bibliotecas .... '
print '6%...'
deploy(appName='br.com.dscon.framework',path='/app/deploy/IGovPad/br.com.dscon.framework2.1.0.0.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '12%...'
deploy(appName='br.com.dscon.igov.pad.framework',path='/app/deploy/IGovPad/br.com.dscon.igov.pad.framework2.1.0.0.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '18%...'
deploy(appName='br.com.dscon.processodigital',path='/app/deploy/IGovPad/br.com.dscon.processodigital2.1.0.1.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '24%...'
deploy(appName='br.com.dscon.igov.sgpu.bc',path='/app/deploy/IGovPad/br.com.dscon.igov.sgpu.bc.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '30%...'
deploy(appName='br.com.dscon.igovpad.autuacao.taskflows',path='/app/deploy/IGovPad/br.com.dscon.igovpad.autuacao.taskflows.war',targets='clusterSPACES', libraryModule='true')
print '36%...'
deploy(appName='br.com.dscon.igovpad.bc',path='/app/deploy/IGovPad/br.com.dscon.igovpad.bc.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '42%...'
deploy(appName='br.com.dscon.igovpad.componentes',path='/app/deploy/IGovPad/br.com.dscon.igovpad.componentes.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '48%...'
deploy(appName='br.com.dscon.processodigital.taskflows',path='/app/deploy/IGovPad/br.com.dscon.processodigital.taskflows2.1.0.3.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print '54%...'
deploy(appName='br.com.dscon.webcenter.taskflows',path='/app/deploy/IGovPad/br.com.dscon.webcenter.taskflows.war',targets='clusterSPACES', libraryModule='true')
print '60%...'
deploy(appName='br.com.dscon.componentes',path='/app/deploy/IGovPad/br.com.dscon.componentes.war',targets='clusterSOA,clusterSPACES', libraryModule='true')
print 'Deployando aplicações .... '
print '66%...'
deploy(appName='AssinadorWEB',path='/app/deploy/IGovPad/AssinadorWEB1.2.0.4.war',targets='clusterSOA', libraryModule='false')
deploy(appName='ProcessoDigitalWs',path='/app/deploy/IGovPad/ProcessoDigitalWs1.2.1.8.ear',targets='clusterSOA', libraryModule='false')
print '72%...'
deploy(appName='AppVisualizadorPDF',path='/app/deploy/IGovPad/AppVisualizadorPDF2.0.0.1.war',targets='clusterSOA', libraryModule='false')
print '80%...'
deploy(appName='ExecutarTarefaAdHocUI',path='/app/deploy/IGovPad/ExecutarTarefaAdHocUI.ear',targets='clusterSOA', libraryModule='false')
print '86%...'
deploy(appName='IGovPadBCWs',path='/app/deploy/IGovPad/IGovPadBCWs.ear',targets='clusterSOA', libraryModule='false')
print '92%...'
deploy(appName='AppProcessDetails',path='/app/deploy/IGovPad/AppProcessDetails2.0.0.1.ear',targets='clusterSOA', libraryModule='false')
print '100%...'
print 'Salvando alterações .... '
save()
print 'Liberando edição .... '
activate(block="true")
except Exception, e:
print e
print 'Cancelando edição .... '
cancelEdit()
dumpStack()
exit()
print 'Desconectando .... '
disconnect()
print 'Deploy realizado com sucesso ...'
exit()