commit | 243a70b84dd42b387094137639dc9d7b54a6542a | [log] [tgz] |
---|---|---|
author | June Tate-Gans <jtgans@google.com> | Fri Jun 12 16:40:17 2020 -0400 |
committer | June Tate-Gans <jtgans@google.com> | Fri Jun 12 16:40:17 2020 -0400 |
tree | 4724b9fa7851ef38e7f892e29074cb3a5d3d8915 | |
parent | a556e4cbcd39411604b429da92503089f965f17e [diff] |
Use the tail of the sorted list Change-Id: Ieadf8ad1c5a111c6e8da83285122d85e13dd18a7
diff --git a/cicd/pipelines/tasks/task_update_unstable.jenkins b/cicd/pipelines/tasks/task_update_unstable.jenkins index e6c5134..4ab1d37 100644 --- a/cicd/pipelines/tasks/task_update_unstable.jenkins +++ b/cicd/pipelines/tasks/task_update_unstable.jenkins
@@ -4,7 +4,7 @@ def script = """ aptly snapshot list --sort=time --raw \ | grep -E '^${repository_stem}-' \ - | head -n1 + | tail -n1 """ return sh(returnStdout: true, script: script).trim()