Giter Club home page Giter Club logo

grunt-ant-sfdc's People

Contributors

bbaker2 avatar chexxor avatar cwarden avatar dextermilo avatar dsanvita avatar jimpdx avatar jirichin avatar kevinohara80 avatar loganm avatar mattsones avatar midell-csod avatar nathankramer avatar oblongmana avatar xpresslanej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-ant-sfdc's Issues

Deployment 'succeeds' but files are not in sfdc

I believe I've successfully set up grant-ant-sfdc. It looks like it's working. But when i log in to the actual salesforce org, the files that I deployed aren't there.

Any ideas why that might be?

Here is the 'successful' deployment
antdeploy

antretrieve task code looks for ad-hoc pkg in wrong place

In ant_sfdc.js, line 254 points ant to localTmp for the package.xml.

However, when using an ad-hoc pkg (using the pkg property in grunt config, instead of existingPackage) - the ad-hoc package.xml doesn't get built to localTmp, instead getting built to to options.root - see line 262.

Will put in a PR to fix shortly - likely going to build package.xml to localTmp in both lines 262 and 265 (so in both existing package and ad-hoc package situations), just need to check that the retrieved stuff includes a package.xml. If it doesn't, will probably make it write to root instead, and change line 254 to point ant to that instead. I see the existing package code path moves package.xml to the localTmp - so only need to modify the ad-hoc pkg code path - copying the new package.xml in root into localTmp

antdestroy task crash

It looks like #46 broke the antdestroy task which will now need a default value for the zipFile option.

Work around is for the user to set this option themselves.

Build is Broken: antDeploy looks for user / pass in global options rather than localc

antdeploy: {
options: {
root: 'deploy/',
apiVersion: '29.0',
user: 'gunish.chawla@COMPANYNAME',
pass: 'PASSWORD',
token: ''
},

  dev: {
    option: {
      user: 'gunish.chawla@COMPANYNAME', // This variable is no longer read
      pass: 'PASSWORD', // This variable is no longer read
      token: '' // This variable is not longer read
    },
    pkg: {
      staticresources: ['*']
    }
  }
},

installedPackages fail to deploy

I get this error when attempting to deploy an installed package:

Fatal error: installedPackages is not a valid metadata type

config:

'antdeploy': {
      options: {
        apiVersion: '36.0'
      },
      installedPackages: {
        options: {
          root: 'deploy/',
          user: ***********,
          pass: ***********,
          token: ***********
        },
        pkg: {
          installedPackages: ['*']
        }
      }

Here's the full console output:

c:\work\salesforce_ant\OptimizeDev>grunt antdeploy:installedPackages --buildtarget=sbsand
Running "antdeploy:installedPackages" (antdeploy) task
Deploy Target -> installedPackages
User -> *************
**Fatal error: installedPackages is not a valid metadata type**

deploy folder structure:
deploy folder structure

package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>skuid</members>
        <name>InstalledPackage</name>
    </types>
    <version>36.0</version>
</Package>

skuid.installedPackage:

<?xml version="1.0" encoding="UTF-8"?>
<InstalledPackage xmlns="http://soap.sforce.com/2006/04/metadata">
    <versionNumber>8.6</versionNumber>
</InstalledPackage>

add posibility to pass pkg configuration

Hi . I am relatively new to grunt . I am currently working with auto deployment system . I have dynamically generated package configuration and want to pass it to grunt-ant-sfdc. but when i use something like
grunt.task.run("antdeploy", {pkg: conf});
i got error

Fatal error: Object # has no method 'replace'
TypeError: Object # has no method 'replace'
at Task.splitArgs (/home/ydadmin/work/yd/ydSalesforce/repo/master/yd-sf-deploy/node_modules/grunt/lib/util/task.js:120:15)
at Task._taskPlusArgs (/home/ydadmin/work/yd/ydSalesforce/repo/master/yd-sf-deploy/node_modules/grunt/lib/util/task.js:135:22)
at Array.map (native)
at Task.run (/home/ydadmin/work/yd/ydSalesforce/repo/master/yd-sf-deploy/node_modules/grunt/lib/util/task.js:170:44)
at /home/ydadmin/work/yd/ydSalesforce/repo/master/yd-sf-deploy/Gruntfile.js:79:28
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket. (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)

Add support for static resource bundle deployment

It would be nice if there was an option in the deploy settings for resource bundles as well. It wouldn't be too difficult to then zip the files within the folder and deploy them as staticresources

Cannot delete nonexistent file error

This error pops up periodically when running antdeploy

Running "antdeploy:all" (antdeploy) task
>> Cannot delete nonexistent file.
Deploy Target -> all
User -> [email protected]
Starting ANT deploy...
>> deploy target all successful

Error ' has not method replace'

When try to execute grunt antdeploy , im getting the following error.

Erkans-MacBook-Pro-2:angular2 erkancipil$ grunt antdeploy
Running "antdeploy:my_pre_dev" (antdeploy) task
Deploy Target -> my_pre_dev
User -> [email protected]
Starting ANT deploy...
Fatal error: Object Buildfile: /Users/erkancipil/Documents/angular2/node_modules/grunt-ant-sfdc/tmp/ant/build.xml
has no method 'replace'

Here is my grunt.js

screen shot 2016-05-17 at 12 24 18 am

Ant Destroy task generates incorrect `package` and `destructiveXml` files

Main problem is that the calls to buildPackageXml in the antdestroy task are passing the apiVersion as the second parameter, when the function expects the package name as the second parameter.

The task also creates a non empty package.xml which results in a redundant deploy of the package, before destroying.
Have had a go at fixing with #41

Password strings starting with & break

I have a password string that begins with '&yUis2' and when I attempt to use it in a deploy, I get this:

Warning:
BUILD FAILED
C:\work\salesforce_ant\OptimizeDev\node_modules\grunt-ant-sfdc\tmp\ant\build.xml:7: The reference to entity "yUis2" must end with the ';' delimiter.

Total time: 0 seconds Use --force to continue.

Aborted due to warnings.

slow deployment time

My deployments are taking up to 4 minutes to deploy even though my broadband is quite average. Are there any ways to debug why it might be taking so long?

Allow a 'delete from serve' operation

grunt-ant-sfdc could almost completely replace the force.com migration tool if it had the ability to delete items from the server. Dynamically creating destructiveChanges.xml with grunt? Superpowers.

useEnv & variable placement ??

If you use the useEnv property, where are the env variables expected to come from? Node vars (for example, process.env.SFUSER), or should these be actual system environment variables? Could you provide an example? Thanks in advance!!

Failed Login Request?

I've been trying to figure out what is happening here.. I've set everything up using the grunt-compress plugin and my configuration seems to be correct (I've double checked my credentials and everything else). What's interesting is its saying that there was a failure to send request to 'login.salesforce' when I've set test.salesforce as the server. Has anyone seen this error before?? Er.. any idea what might be going on? Could it be that I'm behind a proxy?

Any help is greatly appreciated!! Thanks in advance!!

BUILD FAILED C:\Users\****\****\********\node_modules\grunt-ant-sfdc\tmp\ant\build.xml:15: Failed to login: Failed to send request to https://login.salesforce.com/services/Soap/u/29.0

My Config...

antdeploy: {
      options: {
        version: '37'
      },
      dev1: {
        options: {
          user: '****@****.com.dev01',
          pass: '*******',
          token: '*********',
          serverurl: 'https://test.salesforce.com'
        },
        pkg: {
          staticresource: ['*']
        }
      }
    },

Support node-ant

Is there any way to support node-ant as an ant implementation? This would make it easier (especially for windows users) to get this up an running.

It doesn't look like this is using anything to terribly advanced so it should be pretty safe.

Add additional workflow components to metadata.json

Kevin,

I modified my local copy of the lib/metadata.json file to include the following:

"workflowrule": {
    "xmlType": "WorkflowRule",
    "folder": "workflows",
    "allowStar": false
  },
  "workflowfieldupdate": {
    "xmlType": "WorkflowFieldUpdate",
    "folder": "workflows",
    "allowStar": false
  },
  "workflowalert": {
    "xmlType": "WorkflowAlert",
    "folder": "workflows",
    "allowStar": false
  },
  "workflowtask": {
    "xmlType": "WorkflowTask",
    "folder": "workflows",
    "allowStar": false
  }

I did this specifically to use antdestroy to remove a mess of old legacy workflow rules. Do you think this would be valuable for the general public?

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.