Skip to content

Commit 285ac5d

Browse files
Merge branch 'main' of https://github.com/oracle/weblogic-deploy-tooling into main
2 parents 5bce69e + 5a4c1d3 commit 285ac5d

File tree

23 files changed

+92
-84
lines changed

23 files changed

+92
-84
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ release.properties
2727
**/*$py.class
2828
**/*.pyc
2929
**/.DS_Store
30+
system-test/domains

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If you want to submit a pull request to fix a bug or enhance an existing feature
55

66
If you have any questions about a possible submission, feel free to open an issue too.
77

8-
## [Contributing to the Oracle WLS Deploy repository](http://github.com/oracle/wls-deploy/blob/master/CONTRIBUTING.md)
8+
## [Contributing to the WebLogic Deploy repository](http://github.com/oracle/wls-deploy/blob/master/CONTRIBUTING.md)
99
Pull requests can be made under [The Oracle Contributor Agreement](https://www.oracle.com/technetwork/community/oca-486395.html) (OCA).
1010

1111
For pull requests to be accepted, the bottom of your commit message must have the following line using your name and e-mail address as it appears in the OCA Signatories list.

Jenkinsfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ pipeline {
7878
stage ('Alias Test') {
7979
// only run this stage when triggered by a cron timer and the commit does not have []skip-ci in the message
8080
// for example, only run integration tests during the timer triggered nightly build
81+
8182
when {
8283
allOf {
8384
triggeredBy 'TimerTrigger'
@@ -105,15 +106,16 @@ pipeline {
105106
steps {
106107
sh '/u01/verify/alias-test/src/test/resources/runIntegrationTest.sh -wls_version ${WLS_VERSION} -testfiles_path /u01/verify/testfiles;cp /u01/verify/testfiles/report* $WORKSPACE'
107108
}
108-
post {
109-
always {
110-
archiveArtifacts artifacts: 'report*', fingerprint: true
111-
}
112-
}
113109
}
114110
}
111+
115112
}
116113
// after all sets are complete, the job will continue here.
114+
post {
115+
always {
116+
archiveArtifacts artifacts: 'report*', fingerprint: true
117+
}
118+
}
117119
}
118120
stage ('Save Nightly Installer'){
119121
when {

alias-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>commons-io</groupId>
3434
<artifactId>commons-io</artifactId>
35-
<version>2.6</version>
35+
<version>2.7</version>
3636
<scope>test</scope>
3737
</dependency>
3838
</dependencies>

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<parent>
1212
<artifactId>weblogic-deploy</artifactId>
1313
<groupId>com.oracle.weblogic.lifecycle</groupId>
14-
<version>1.9.12-SNAPSHOT</version>
14+
<version>1.9.13-SNAPSHOT</version>
1515
<relativePath>../pom.xml</relativePath>
1616
</parent>
1717

core/src/main/python/update.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ def __update_online(model, model_context, aliases):
135135
__logger.info("WLSDPLY-09007", admin_url, method_name=_method_name, class_name=_class_name)
136136

137137
topology_updater = TopologyUpdater(model, model_context, aliases, wlst_mode=WlstModes.ONLINE)
138+
jdbc_names = None
138139
try:
139-
topology_updater.update_machines_clusters_and_servers(delete_now=False)
140+
jdbc_names = topology_updater.update_machines_clusters_and_servers(delete_now=False)
140141
topology_updater.warn_set_server_groups()
141142
except DeployException, de:
142143
deployer_utils.release_edit_session_and_disconnect()
@@ -157,6 +158,7 @@ def __update_online(model, model_context, aliases):
157158
raise ex
158159

159160
try:
161+
topology_updater.clear_placeholder_targeting(jdbc_names)
160162
topology_updater.update()
161163
model_deployer.deploy_resources(model, model_context, aliases, wlst_mode=__wlst_mode)
162164
deployer_utils.delete_online_deployment_targets(model, aliases, __wlst_mode)
@@ -197,7 +199,7 @@ def __update_offline(model, model_context, aliases):
197199

198200
topology_updater = TopologyUpdater(model, model_context, aliases, wlst_mode=WlstModes.OFFLINE)
199201
# deleting servers that are added by templates before set server groups causes mayhem
200-
topology_updater.update_machines_clusters_and_servers(delete_now=False)
202+
jdbc_names = topology_updater.update_machines_clusters_and_servers(delete_now=False)
201203

202204
# update rcu schema password must happen before updating jrf domain
203205
if model_context.get_update_rcu_schema_pass() is True:
@@ -207,7 +209,7 @@ def __update_offline(model, model_context, aliases):
207209
__update_offline_domain()
208210

209211
topology_updater.set_server_groups()
210-
212+
topology_updater.clear_placeholder_targeting(jdbc_names)
211213
topology_updater.update()
212214

213215
# Add resources after server groups are established to prevent auto-renaming

core/src/main/python/wlsdeploy/tool/deploy/topology_updater.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def update_machines_clusters_and_servers(self, delete_now=True):
150150
self._process_section(self._topology, folder_list, MIGRATABLE_TARGET, location, delete_now)
151151

152152
# targets may have been inadvertently assigned when clusters were added
153+
return jdbc_names
154+
155+
def clear_placeholder_targeting(self, jdbc_names):
153156
self.topology_helper.clear_jdbc_placeholder_targeting(jdbc_names)
154157

155158
def warn_set_server_groups(self):

installer/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>com.oracle.weblogic.lifecycle</groupId>
1414
<artifactId>weblogic-deploy</artifactId>
15-
<version>1.9.12-SNAPSHOT</version>
15+
<version>1.9.13-SNAPSHOT</version>
1616
<relativePath>../pom.xml</relativePath>
1717
</parent>
1818

installer/src/main/bin/compareModel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ usage() {
4343

4444
WLSDEPLOY_PROGRAM_NAME="compareModel"; export WLSDEPLOY_PROGRAM_NAME
4545

46-
scriptName=`basename $0`
46+
scriptName=$(basename "$0")
4747
scriptPath=$(dirname "$0")
4848
scriptArgs=$*
4949

50-
. $scriptPath/shared.sh
50+
. "$scriptPath/shared.sh"
5151

5252
umask 27
5353

installer/src/main/bin/createDomain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ usage() {
107107

108108
WLSDEPLOY_PROGRAM_NAME="createDomain"; export WLSDEPLOY_PROGRAM_NAME
109109

110-
scriptName=`basename $0`
110+
scriptName=$(basename "$0")
111111
scriptPath=$(dirname "$0")
112112
scriptArgs=$*
113113

114-
. $scriptPath/shared.sh
114+
. "$scriptPath/shared.sh"
115115

116116
umask 27
117117

0 commit comments

Comments
 (0)