#571 ✓resolved
Alex-SF

ScriptResourceModel plugin can't use script-args and script-interpreter

Reported by Alex-SF | 2012-05-11 08:52:33 UTC | in Rundeck 1.4.3 (closed)

  • Issue Type: Bug
  • Rundeck version: 1.4.2
  • JDK Version: 1.6
  • Server OS: Mac OS X
  • Install type: Jar

Issue:

There is a bug when you specify script-args, and the script-interpreter.
Rundeck is passing the whole filename + args as the filename to the interpreter.

Caught: java.io.FileNotFoundException: /Users/alexh/rundeck/libext/cache/groovy-script-plugin/mock.groovy -u http:/localhost:8080 -t Server (/Users/alexh/rundeck/libext/cache/groovy-script-plugin/mock.groovy -u http:/localhost:8080 -t Server)

Reproduce:

Here is a plugin.yaml showing the desired syntax:

name: Groovy Mock Plugin
version: 1.0
rundeckPluginVersion: 1.0
author: alexh
date: 5/10/12
providers:
    - name: groovy-mock-plugin
      service: ResourceModelSource
      plugin-type: script
      script-interpreter: /usr/bin/groovy
      script-file: mock.groovy
      script-args: "-u ${config.url} -t ${config.nodetype}"
      title: Groovy Mock Plugin
      description: Generates some fake node data in xml
      resource-format: resourcexml
      config:
        - type: String
          name: nodetype
          title: Node Type
          description: The NodeType to search
          default: Server
        - type: String
          name: url
          title: URL
          description: The node authority URL
          default: ''

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues

Shared Ticket Bins

People watching this ticket

Tags

Pages