Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ class CWSTaskPollingMonitor extends TaskPollingMonitor {
return pendingTasks
}

private static removePublishDirIfSkipEnabled( TaskHandler handler ) {
if( handler.task.config.get('skipPublishDir') ) {
handler.task.config.put('publishDir', null)
}
}

private static void checkPublishDirMode(TaskHandler handler ) {
def publishDirs = handler.task.config.get('publishDir')
if ( publishDirs && publishDirs instanceof List ) {
Expand Down Expand Up @@ -95,6 +101,7 @@ class CWSTaskPollingMonitor extends TaskPollingMonitor {
OfflineLocalPath path = new WorkdirPath( workDir, attributes, workDir, helper )
handler.task.workDir = path
}
removePublishDirIfSkipEnabled(handler)
checkPublishDirMode(handler)
super.finalizeTask(handler)
helper?.validate()
Expand Down