GithubHelp home page GithubHelp logo

jsdelivrbot / cla-msbuild-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clarive/cla-msbuild-plugin

0.0 1.0 0.0 19 KB

Plugin for MSBuild

License: GNU General Public License v3.0

JavaScript 100.00%

cla-msbuild-plugin's Introduction

MSBuild Plugin

MSBuild Plugin

The MSBuild plugin will allow you to build applications via the command-line (CLI).

Requirements

There are no requirements outlined in Clarive in order to work with this plugin.

Installation

To install the plugin, place the cla-msbuild-plugin folder inside the $CLARIVE_BASE/plugins directory in a Clarive instance.

MSBuild

The available parameters for the service are:

  • Server (variable name: server) - Server where MSBuild is installed.
  • User (user) - User which will be used to connect to the server.
  • MSBuild Path (msbuild) - Path to MSBuild.
  • Project Path (project) - Path to the project.
  • Switches (switches) - Commands to make the builds.

Only Clarive EE

  • Errors and output - These two fields concern management of control errors. Their options are:
    • Fail and output error - Search for configured error pattern in script output. If found, an error message is displayed in the monitor showing the match.
    • Warn and output warn - Search for configured warning pattern in script output. If found, an error message is displayed in the monitor showing the match.
    • Custom - Where combo errors is set to custom, a new form is displayed for defining using the following fields:
      • OK - Range of return code values for the script to have succeeded. No message will be displayed in the monitor.
      • Warn - Range of return code values to warn the user. A warning message will be displayed in the monitor.
      • Error - Range of return code values for the script to have failed. An error message will be displayed in the monitor.
    • Silent - Silence all errors found.

How to use

In Clarive EE

Once the plugin is placed in its folder, you can find this service in the palette in the section of generic service and can be used like any other palette op.

Op Name: MSBuild

Example:

    Server CI: GenericServer
    MSBuild Path: c:\Program Files (x86)\MSbuildPath\MSBuild.exe
    Project Path: c:\BuildApp\BuildApp.csproj
    Switches: /t:mytarget

In Clarive SE

Rulebook

If you want to use the plugin through the Rulebook, in any do block, use this ops as examples to configure the different parameters:

do:
   - msbuild_task:
       server: msbuild_server   # Required. Use the mid set to the resource you created
       user: 'clarive'
       msbuild: 'c:\Program Files (x86)\MSbuildPath\MSBuild.exe'    # Required
       project: "c:\BuildApp\BuildApp.csproj"   # Required
       switches: ['/t:mytarget']
Outputs
Success

The service will return the console output for the command.

Possible configuration failures

Task failed

If the task fails, you will be notice with the console output.

Variable required

Error in rulebook (compile): Required argument(s) missing for op "msbuild_task": "msbuild"

Make sure you have all required variables defined.

Not allowed variable

Error in rulebook (compile): Argument `Command` not available for op "msbuild_task"

Make sure you are using the correct paramaters (make sure you are writing the variable names correctly).

More questions?

Feel free to join Clarive Community to resolve any of your doubts.

cla-msbuild-plugin's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.