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

Ivy Project template not compatible with other build solutions then ant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ivy-plugin
    • Labels:
      None
    • Environment:
      Windows, .NET, C#
    • Similar Issues:

      Description

      Hi!

      We use ivy (stand-alone) with NAnt to build our solutions.
      And now we want to use the benitifts of the Modules part of the Ivy project (which is very neat!).

      When looking at the command output. I can see that the Ivy project tries to invoke ant.bat by default.

      cmd.exe /C '"ant.bat -file component.build && exit %%ERRORLEVEL%%"'

      Therefore i thought that then i might create a ant.bat which contains "nant build", just a passthru / redirect to what we realy want to use.
      And that ofcourse works fine.

      Thought the issue becomes when we are trying to get the enviroment properties that the freestyle projects sets as invoking time.

      The vars that we use is SVN_REVISION AND BUILD_NUMBER.
      When using NAnt we can se the following in the console output.

      Executing command: hudson.util.ArgumentListBuilder@78dd3dc4
      [local] $ cmd.exe /C '"NAnt.exe -buildfile:BuildTool\Component.build milestone release && exit %%ERRORLEVEL%%"'

      Either the values are not passed to the ant.bat file or I can't just referrer them as i'v been doing before.
      Is there a reason for the values not to follow? How should i solve this instead? Do you have an idea of how this could be solved? I'm open minded!

      Thanks alot for the great work!

      Looking forward to using the Ivy Project template and just not the plugin.

      Tomas

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : tbingaman
          Path:
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/IvyBuilderType.java
          http://jenkins-ci.org/commit/32755
          Log:
          JENKINS-6802 marked IvyBuilderType as an extension point.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : tbingaman Path: trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/IvyBuilderType.java http://jenkins-ci.org/commit/32755 Log: JENKINS-6802 marked IvyBuilderType as an extension point.
          Hide
          tbingaman Timothy Bingaman added a comment -

          Hi Tomas, have you had a chance to try this out? I don't have a NAnt build example to test it on here. It looks like it should all be working, but I'd like a confirmation before I actually release it.

          Thanks,
          Timo

          Show
          tbingaman Timothy Bingaman added a comment - Hi Tomas, have you had a chance to try this out? I don't have a NAnt build example to test it on here. It looks like it should all be working, but I'd like a confirmation before I actually release it. Thanks, Timo
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : tbingaman
          Path:
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/IvyBuild.java
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/IvyModule.java
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/IvyModuleSetBuild.java
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/AntIvyBuilderType.java
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/IvyBuilderType.java
          trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/NAntIvyBuilderType.java
          trunk/hudson/plugins/ivy/src/main/resources/hudson/ivy/IvyModule/configure-entries.jelly
          http://jenkins-ci.org/commit/33064
          Log:
          JENKINS-6802 Fixing some fallout from adding this new feature. Restored ability to override targets on a per-module basis.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : tbingaman Path: trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/IvyBuild.java trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/IvyModule.java trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/IvyModuleSetBuild.java trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/AntIvyBuilderType.java trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/IvyBuilderType.java trunk/hudson/plugins/ivy/src/main/java/hudson/ivy/builder/NAntIvyBuilderType.java trunk/hudson/plugins/ivy/src/main/resources/hudson/ivy/IvyModule/configure-entries.jelly http://jenkins-ci.org/commit/33064 Log: JENKINS-6802 Fixing some fallout from adding this new feature. Restored ability to override targets on a per-module basis.
          Hide
          tbingaman Timothy Bingaman added a comment -

          Added in release 1.8

          Show
          tbingaman Timothy Bingaman added a comment - Added in release 1.8
          Hide
          troos troos added a comment -

          Hey!

          Thanks for the work, i'v been on vaccation and there fore been unable to test this. I will get on it next week.
          Thanks again.

          Show
          troos troos added a comment - Hey! Thanks for the work, i'v been on vaccation and there fore been unable to test this. I will get on it next week. Thanks again.

            People

            • Assignee:
              tbingaman Timothy Bingaman
              Reporter:
              troos troos
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: