-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical
-
Component/s: git-plugin, workflow-multibranch-plugin
-
None
-
Environment: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