@@ -65,7 +65,7 @@ class JsmDevDeployment implements Deployment {
65
65
66
66
@Override
67
67
ArrayList<Container > getContainers () {
68
- return [srcSyncer, allureContainer, jsmContainer, reportSyncer]
68
+ return [srcSyncer, allureContainer, jsmContainer, reportSyncer]. findAll {it != null }
69
69
}
70
70
71
71
@Override
@@ -109,12 +109,14 @@ class JsmDevDeployment implements Deployment {
109
109
110
110
111
111
112
+
112
113
srcCodeVolume = dockerClient. getOrCreateVolume(componentsPrefix + " -code" )
113
114
allureReportVolume = dockerClient. getOrCreateVolume(componentsPrefix + " -allureReports" )
114
115
jiraReportVolume = dockerClient. getOrCreateVolume(componentsPrefix + " -jiraReports" )
115
116
116
-
117
- srcSyncer = DirectorySyncer . createSyncToVolume(srcCodePaths, srcCodeVolume. name, " SrcSyncer" , " -avh --chown=2001:2001" )
117
+ if (srcCodePaths) {
118
+ srcSyncer = DirectorySyncer . createSyncToVolume(srcCodePaths, srcCodeVolume. name, " SrcSyncer" , " -avh --chown=2001:2001" )
119
+ }
118
120
reportSyncer = DirectorySyncer . syncBetweenVolumesAndUsers(jiraReportVolume. name, allureReportVolume. name, " 1000:1000" , " ReportSyncer" )
119
121
120
122
@@ -132,10 +134,11 @@ class JsmDevDeployment implements Deployment {
132
134
}
133
135
134
136
jsmDeployment. setupDeployment(builder. useSnapshotIfAvailable, builder. snapshotAfterCreation)
135
- // Change owner of the mounted volume
136
- jsmContainer. runBashCommandInContainer(" chown -R jira:jira /var/atlassian/application-data/jira/allure-results " , 10 , " root" )
137
+ // Change owner of the mounted volumes
138
+ jsmContainer. runBashCommandInContainer(" chown -R jira:jira /var/atlassian/application-data/jira/" , 10 , " root" )
137
139
138
140
if (jsmDeployment. jiraRest. scriptRunnerIsInstalled()) {
141
+ jsmDeployment. jiraRest. waitForSrToBeResponsive()
139
142
jsmDeployment. jiraRest. deploySpockEndpoint([' com.riadalabs.jira.plugins.insight' ])
140
143
}
141
144
0 commit comments