-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Fixed
-
Component/s: git-plugin, workflow-multibranch-plugin
-
Labels:None
-
Environment:jenkins 2.50
Pipeline from SCM
-
Similar Issues:
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
Prevents
JENKINS-31386from working; seems to have regressed fromJENKINS-33273fix.