-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
jenkins 2.50
Pipeline from SCM
Using a branch with Pipeline from SCM breaks readTrusted. The following snippet only works from */master and not */bugfix/break-readTrusted. See https://github.com/initialzero/jenkins-break-readtrusted.git with branch and pipeline from scm.
#!groovy node { stage('test') { def trustedText = readTrusted 'foo.properties' echo trustedText } }
Error message from Jenkins is:
ERROR: ‘readTrusted’ is only available when using “Multibranch Pipeline” or “Pipeline script from SCM”
- relates to
-
JENKINS-31386 "checkout scm" does not work in standalone jobs
- Resolved
-
JENKINS-33273 Optimize Jenkinsfile loading and branch detection
- Resolved
- links to