Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poll for non-'main' branches on sciplat-lab #1046

Merged
merged 1 commit into from
Nov 14, 2024
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
6 changes: 2 additions & 4 deletions pipelines/sqre/infra/build_sciplatlab.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ notify.wrap {
// We presume that GH Actions will continue to list most recent runs
// at the top. Poll the build.yaml runs for the first result.

// I think we always want the main branch.

def url = new URL("https://api.github.com/repos/lsst-sqre/sciplat-lab/actions/workflows/build.yaml/runs?per_page=1&branch=main")
def url = new URL("https://api.github.com/repos/lsst-sqre/sciplat-lab/actions/workflows/build.yaml/runs?per_page=1&branch=${branch}")

def created_at = starttime.minusSeconds(1)
// One second before we really started the action.
Expand All @@ -94,7 +92,7 @@ notify.wrap {
// the POST that would identify the job the POST ran, I think this is
// the best we can do.

println("Initial polling loop to find run_id: created_at: ${created_at}; url: ${url}; starttime: ${starttime}")
println("Initial polling loop to find run_id: branch: ${branch}; created_at: ${created_at}; url: ${url}; starttime: ${starttime}")

def loop_idx = 0
def jsonSlurper = new groovy.json.JsonSlurper()
Expand Down
Loading