Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
-
jenkins 2.50
Pipeline from SCM
Description
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”
Attachments
Issue Links
- relates to
-
JENKINS-31386 "checkout scm" does not work in standalone jobs
-
- Resolved
-
-
JENKINS-33273 Optimize Jenkinsfile loading and branch detection
-
- Resolved
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Description |
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. {code:java} #!groovy node { stage('test') { def trustedText = readTrusted 'foo.properties' echo trustedText } } {code} |
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. {code:java} #!groovy node { stage('test') { def trustedText = readTrusted 'foo.properties' echo trustedText } } {code} Error message from Jenkins is: ERROR: ‘readTrusted’ is only available when using “Multibranch Pipeline” or “Pipeline script from SCM” |
Priority | Minor [ 4 ] | Major [ 3 ] |
Component/s | workflow-multibranch-plugin [ 21465 ] | |
Component/s | pipeline-multibranch-defaults-plugin [ 21926 ] |
Assignee | Denis Saponenko [ vaimr ] | Andrew Bayer [ abayer ] |
Assignee | Andrew Bayer [ abayer ] |
Link |
This issue relates to |
Link |
This issue relates to |
Priority | Major [ 3 ] | Critical [ 2 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Component/s | git-plugin [ 15543 ] |
Assignee | Jesse Glick [ jglick ] |
Remote Link | This issue links to "workflow-multibranch PR 67 (Web Link)" [ 17395 ] |
Remote Link | This issue links to "git PR 519 (Web Link)" [ 17396 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Resolution | Fixed [ 1 ] | |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Prevents
JENKINS-31386from working; seems to have regressed fromJENKINS-33273fix.