[JIRA] (JENKINS-42817) readTrusted Pipeline from SCM only works in */master

1 view
Skip to first unread message

initialzero@gmail.com (JIRA)

unread,
Mar 15, 2017, 3:50:01 PM3/15/17
to jenkinsc...@googlegroups.com
Marc Benstein created an issue
 
Jenkins / Bug JENKINS-42817
readTrusted Pipeline from SCM only works in */master
Issue Type: Bug Bug
Assignee: Denis Saponenko
Components: pipeline-multibranch-defaults-plugin
Created: 2017/Mar/15 7:49 PM
Environment: jenkins 2.50
Pipeline from SCM
Priority: Minor Minor
Reporter: Marc Benstein

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
 }
}

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

initialzero@gmail.com (JIRA)

unread,
Mar 22, 2017, 3:06:01 PM3/22/17
to jenkinsc...@googlegroups.com

initialzero@gmail.com (JIRA)

unread,
Mar 22, 2017, 3:06:01 PM3/22/17
to jenkinsc...@googlegroups.com
Marc Benstein updated an issue
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”

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:32:20 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Fixed
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages