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

allow deploy plugin to accept parametrized variables like %parameter% or $parameter

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Please add support for deploy plugin to accept parametrized variables for url, user and password.
      I tried injecting parameters with envinject and then referencing them in deploy-plugin like %app.server.url%, ${app.server.url}, $app.server.url, but I'm still getting exception

      FATAL: java.net.MalformedURLException: no protocol: %app.server%/manager
      java.lang.AssertionError: java.net.MalformedURLException: no protocol: %app.server%/manager

        Attachments

          Activity

          Hide
          sbremal First Name Last Name added a comment -

          Is there any solution or workaround for this? I am desperate to have 1 deployment job which can be used for many environments (DEV, TST etc.)

          Show
          sbremal First Name Last Name added a comment - Is there any solution or workaround for this? I am desperate to have 1 deployment job which can be used for many environments (DEV, TST etc.)
          Hide
          sbremal First Name Last Name added a comment -

          Looking up similar codes I came to 'copyartifact-plugin-master'.

          \src\main\java\hudson\plugins\copyartifact\CopyArtifact.java

          ...
          public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
          throws InterruptedException, IOException {
          upgradeIfNecessary(build.getProject());
          PrintStream console = listener.getLogger();
          String expandedProject = project, expandedFilter = filter;
          try {
          EnvVars env = build.getEnvironment(listener);
          env.overrideAll(build.getBuildVariables()); // Add in matrix axes..
          expandedProject = env.expand(project);
          ...

          I guess we need similar mechanism in 'deploy-plugin-master'

          Show
          sbremal First Name Last Name added a comment - Looking up similar codes I came to 'copyartifact-plugin-master'. \src\main\java\hudson\plugins\copyartifact\CopyArtifact.java ... public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { upgradeIfNecessary(build.getProject()); PrintStream console = listener.getLogger(); String expandedProject = project, expandedFilter = filter; try { EnvVars env = build.getEnvironment(listener); env.overrideAll(build.getBuildVariables()); // Add in matrix axes.. expandedProject = env.expand(project); ... I guess we need similar mechanism in 'deploy-plugin-master'
          Hide
          nkuhn Nils Kuhn added a comment -

          Anything new about that?

          Show
          nkuhn Nils Kuhn added a comment - Anything new about that?
          Hide
          sbremal First Name Last Name added a comment -

          Nope. 'deploy-plugin' is not mature for anything close to enterprise production environment. We went for a solution outside Jenkins (however trigger from Jenkins).

          Show
          sbremal First Name Last Name added a comment - Nope. 'deploy-plugin' is not mature for anything close to enterprise production environment. We went for a solution outside Jenkins (however trigger from Jenkins).
          Hide
          mturra mturra added a comment -

          Show
          mturra mturra added a comment -
          Hide
          sbremal First Name Last Name added a comment -

          Contact me privately, we have an enterprise grade solution. Regards, Balazs

          Show
          sbremal First Name Last Name added a comment - Contact me privately, we have an enterprise grade solution. Regards, Balazs
          Hide
          vadipp Vadim Ippolitov added a comment -

          Is there any solution for this? We're using Tomcat 7.

          Show
          vadipp Vadim Ippolitov added a comment - Is there any solution for this? We're using Tomcat 7.
          Hide
          jansohn Robin Jansohn added a comment -

          This should be supported since v1.12.

          Show
          jansohn Robin Jansohn added a comment - This should be supported since v1.12.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lvasek Lukáš Vasek
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: