        """
  
        sh label: "Execute Notebooks", script: """set -ex
        conda activate ${ENV_NAME}
        export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES}
        ./static/cache.sh restore _build/eval/data
        d2lbook build eval
        ./static/cache.sh store _build/eval/data
        """
  
 
</s> remove       export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES}
 </s> add  </s> remove       export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES}
 </s> add  </s> remove       // assign two GPUs to each build
      def EID = EXECUTOR_NUMBER.toInteger()
      def CUDA_VISIBLE_DEVICES=(EID*2).toString() + ',' + (EID*2+1).toString();
 </s> add 
        """
  
        sh label: "Execute Notebooks", script: """set -ex
        conda activate ${ENV_NAME}

        ./static/cache.sh restore _build/eval/data
        d2lbook build eval
        ./static/cache.sh store _build/eval/data
        """
  
keep keep keep keep replace keep keep keep keep keep
 Remove GPU constraints in Jenkins

refer to https://github.com/d2l-ai/d2l-en/pull/1645 
Jenkinsfile