]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
ceph-dev-pipeline: Mark several vars as Fields
authorZack Cerza <zack@cerza.org>
Mon, 3 Nov 2025 22:51:08 +0000 (15:51 -0700)
committerZack Cerza <zack@cerza.org>
Tue, 4 Nov 2025 19:17:12 +0000 (12:17 -0700)
commit5bcdd937c46daa3565b723f17c8d06b322a24063
tree052206b73e8932e88010fd5cda0e5fd1964e79cd
parent677aaef0f51765e473c876930b4797bcd7d72083
ceph-dev-pipeline: Mark several vars as Fields

When variables are defined using 'def' at the top level of a Jenkinsfile, they
are added to the scope local to the generated pipeline function. When they
are defined as Fields, they are instead marked as instance variables of the
encompassing class. As a result, they do not increase the size of the function,
avoiding the MethodTooLargeException. A tradeoff is that their values reset if a
pipeline run is restarted midway, but that's not a feature we are using.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-dev-pipeline/build/Jenkinsfile