-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: config-file-provider-plugin
-
None
-
Environment:FROM jenkins:2.46.1
config-file-provider:2.15.7
I'm trying to replace JENKINS_URL value inside .npmrc
sass_binary_site=$JENKINS_URL/userContent/node-sass-binaries-master/
Â
But the environment variable never gets replaced into file contents, tested with:
- Â $ or ${}
- Predefined or global configration declared variables
- npmrc, maven settings and custom file
Â
pipeline{
   agent any
   stages{
       stage('test'){
      Â
           steps{
               configFileProvider( [configFile(fileId: "test-replace-set", variable: 'file')]){
               script{
                   def text = readFile "${file}"
                   echo text
               }
               }
              Â
           }
       }  Â
          Â
   }
}
Â
Thanks,
Nico
- duplicates
-
JENKINS-48562 Inline Environment Variables not replaced in config file
-
- Closed
-