Skip to content

Commit

Permalink
fixed logic
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <[email protected]>
  • Loading branch information
munishchouhan committed Dec 10, 2024
1 parent 04f5acb commit eef1629
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ class BuildLogServiceImpl implements BuildLogService {
log.info "Container Image is already cached, uploading previously successful build's condalock file for buildId: $buildId"
def builds = persistenceService.allBuilds(buildId.split('-')[1].split('_')[0])
for (def build : builds) {
if ( build.succeeded() && !condaLock.contains('cat environment.lock') ){
condaLock = fetchCondaLockString(build.buildId)
if ( build.succeeded() ){
def curCondaLock = fetchCondaLockString(build.buildId)
if( curCondaLock && !curCondaLock.contains('cat environment.lock') ){
condaLock = curCondaLock
}
}
}
}
Expand Down

0 comments on commit eef1629

Please sign in to comment.