Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41759

Add possibilities to read environment from trusted properties file

    Details

    • Similar Issues:
    • Epic Link:
    • Sprint:
      Declarative - 1.2

      Description

      Using something like readTrusted to get some properties from a file into the environment.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Stage.groovy
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/DeclarativeEnvironmentContributorDescriptor.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ffba650da5e31c875151c9059cc7b0c1295cd10f
            Log:
            JENKINS-41759 Cleaned up unused imports and a class javadoc

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Stage.groovy pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/DeclarativeEnvironmentContributorDescriptor.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ffba650da5e31c875151c9059cc7b0c1295cd10f Log: JENKINS-41759 Cleaned up unused imports and a class javadoc
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesScript.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesTest.java
            pipeline-model-definition/src/test/resources/environmentFromPropertiesEmptyPrefix.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/fc740399ec0e43aeef536726c7f623f950b89dc0
            Log:
            JENKINS-41759 Provide posibility of having no prefix

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesScript.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesTest.java pipeline-model-definition/src/test/resources/environmentFromPropertiesEmptyPrefix.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/fc740399ec0e43aeef536726c7f623f950b89dc0 Log: JENKINS-41759 Provide posibility of having no prefix
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: rsandell
            Path:
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedProperties.java
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesScript.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesTest.java
            pipeline-model-definition/src/test/resources/environmentFromProperties.groovy
            pipeline-model-definition/src/test/resources/environmentFromPropertiesEmptyPrefix.groovy
            pipeline-model-definition/src/test/resources/properties/environmentFromCodedMap.groovy
            pipeline-model-definition/src/test/resources/properties/environmentFromLibraryResource.groovy
            pipeline-model-definition/src/test/resources/properties/environmentFromLibraryResourceUrl.groovy
            pipeline-model-definition/src/test/resources/properties/environmentFromProperties.groovy
            pipeline-model-definition/src/test/resources/properties/environmentFromPropertiesEmptyPrefix.groovy
            pipeline-model-definition/src/test/resources/properties/environmentFromSCM.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/5d787780a48b9996dd72dac8bcad783aedc274ff
            Log:
            JENKINS-41759 PoC for reading from more places than the trusted scm branch

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rsandell Path: pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedProperties.java pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesScript.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/environment/impl/TrustedPropertiesTest.java pipeline-model-definition/src/test/resources/environmentFromProperties.groovy pipeline-model-definition/src/test/resources/environmentFromPropertiesEmptyPrefix.groovy pipeline-model-definition/src/test/resources/properties/environmentFromCodedMap.groovy pipeline-model-definition/src/test/resources/properties/environmentFromLibraryResource.groovy pipeline-model-definition/src/test/resources/properties/environmentFromLibraryResourceUrl.groovy pipeline-model-definition/src/test/resources/properties/environmentFromProperties.groovy pipeline-model-definition/src/test/resources/properties/environmentFromPropertiesEmptyPrefix.groovy pipeline-model-definition/src/test/resources/properties/environmentFromSCM.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/5d787780a48b9996dd72dac8bcad783aedc274ff Log: JENKINS-41759 PoC for reading from more places than the trusted scm branch
            Hide
            mdkf Michael Fowler added a comment -

            rsandell This is a neat feature, did it ever get integrated?

            Show
            mdkf Michael Fowler added a comment - rsandell This is a neat feature, did it ever get integrated?
            Hide
            bitwiseman Liam Newman added a comment -

            Michael Fowler No, the code was never merged.  See the linked PR for details. 

             

            Show
            bitwiseman Liam Newman added a comment - Michael Fowler No, the code was never merged.  See the linked PR for details.   

              People

              • Assignee:
                Unassigned
                Reporter:
                rsandell rsandell
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: