get details of source repository from Jenkinsfile
问题 A Jenkinsfile uses a checkout scm command to retrieve the most recent commit from a linked Bitbucket respository. What specific syntax needs to be added to the Jenkinsfile in order for the Jenkinsfile to be able to extract the repositorySlug , and projectKey from the source repository as variables, and then print out those variables as console output?** Sample Jenkinsfile: I tried to incorporate ideas from the Jenkins Pipeline SCM Step Documentation in the following example Jenkinsfile whose