Skip to content

Commit

Permalink
fix lockfile download
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <[email protected]>
  • Loading branch information
munishchouhan committed Oct 29, 2024
1 parent aa278b2 commit 22a5af7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,19 @@ class ViewController {
//add conda lock file when available
if( buildLogService && result.condaFile ) {
def condaLock = buildLogService.fetchCondaLockString(result.buildId)
def buildId = result.buildId
if ( condaLock && condaLock.contains('cat environment.lock')) {
condaLock = null //if there is no conda lock file, don't show the conda lock data
def builds = persistenceService.allBuilds(result.buildId.split('-')[1].split('_')[0])
for (def build : builds) {
if (build.succeeded()){
buildId = build.buildId
condaLock = buildLogService.fetchCondaLockString(build.buildId)
}
}
}
binding.build_conda_lock_data = condaLock
binding.build_conda_lock_url = "$serverUrl/v1alpha1/builds/${result.buildId}/condalock"
binding.build_conda_lock_url = "$serverUrl/v1alpha1/builds/${buildId}/condalock"
}
// result the main object
return binding
Expand Down

0 comments on commit 22a5af7

Please sign in to comment.