I am trying to use docker agent in Jenkinsfile:
pipeline { agent { docker { image "openjdk:jdk-alpine" } }