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

Support manifest.yml and custom manifestChoice

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cloudfoundry-plugin
    • None

      When using the pipeline syntax generator in Jenkins it's not possible to select both Read configuration from a manifest file and Enter configuration in Jenkins.

      I have the scenario where I would like to use the manifest.yml, but also provide additional environment variables to specify a different "flavour" of deployment.

      pushToCloudFoundry(
        target: 'api.local.pcfdev.io',
        organization: 'pcfdev-org',
        cloudSpace: 'pcfdev-space',
        credentialsId: 'pcfdev_user',
        selfSigned: true,
        servicesToCreate: [
          [name: 'mysql-spring', type: 'p-mysql', plan: '512', resetService: true]
        ],
        manifestChoice: [
          manifestFile: 'path/to/manifest.yml',
          envVars: [
            [key: 'FOO', value: 'bar']
          ]
        ]
      )
      

            olamy Olivier Lamy
            willis6 Sion Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: