File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/kotlin/krews/executor/bsub Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ plugins {
13
13
}
14
14
15
15
group = " io.krews"
16
- version = " 0.14.13 "
16
+ version = " 0.14.14 "
17
17
18
18
repositories {
19
19
maven { setUrl(" https://dl.bintray.com/kotlin/kotlin-eap" ) }
Original file line number Diff line number Diff line change @@ -236,8 +236,9 @@ class BsubExecutor(private val workflowConfig: WorkflowConfig) : LocallyDirected
236
236
237
237
val bsubCommand = " echo $bsubScriptAsBase64 | base64 --decode | bsub"
238
238
val bsubResponse = commandExecutor.exec(bsubCommand)
239
- val jobId = " \\ d+\$ " .toRegex().find(bsubResponse)?.value
240
- ? : throw Exception (" JobID not found in response for bsub command" )
239
+ val jobIdRegex = Regex (""" Job <(\d+)>""" )
240
+ val matchResult = jobIdRegex.find(bsubResponse)
241
+ val jobId = matchResult?.groupValues?.get(1 ) ? : throw Exception (" JobID not found in response for bsub command" )
241
242
242
243
log.info { " Job ID $jobId found for bsub command" }
243
244
You can’t perform that action at this time.
0 commit comments