Currently, in a scripted pipeline, I do this:
stage("Start AWS environment")
As you can see, I am locking a resource over multiple stages, because I am using the AWS-Environment over multiple stages.
Is this still possible with a declarative pipeline? How?