title: Checkpoint in Declarative Jenkins Pipeline
body: <p>I am looking at <a href="https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#workflow-sect-checkpoint" rel="nofollow noreferrer">Cloudbees documentation</a> that says :</p>
  
  <blockquote>
    <p>The correct approach is to always keep the checkpoint step outside of any node block, not associated with either an agent or a workspace</p>
  </blockquote>
  
  <p>The sample example given is for a scripted pipeline. I tried to implement this in Declarative Pipeline, but keep getting error. The only way I can make it work is :</p>
  
  <pre><code>stage ('Promotion Checkpoint') {
      steps {
          checkpoint 'Ready for Manual intervention'
          timeout(time: 60, unit: 'SECONDS') {
              input message: 'Do you want to proceed?'
          }
      }
  }
  </code></pre>
  
  <p>My understanding is a stage in Declarative pipeline is similar to node in Scripted pipeline. I cannot make checkpoint work outside of stage or step, which seems to be my interpretation of suggestion from Cloudbees. Can someone help with right usage outside of checkpoint?</p>