Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solenopsis only copies one file in push operation #262

Open
tiagomiguelsousa opened this issue May 23, 2018 · 3 comments
Open

Solenopsis only copies one file in push operation #262

tiagomiguelsousa opened this issue May 23, 2018 · 3 comments
Labels

Comments

@tiagomiguelsousa
Copy link

Hi all.

I'm trying to use solenopsis inside a jenkinsfile and when i'm run the following command:

/tmp/ant/bin/ant -f /tmp/solenopsis/ant/solenopsis.xml -Dsf.env=dev -Dsf.testLevel=NoTestRun push

i'm getting always the same output, no matter what files i changed and what files i intend to deploy. Also, solenopsis can finish the "deployment" successfully, the problem is that it does not deploy anything...

OUTPUT:

info:
[echo]
[echo] Solenopsis release version [N/A]
[echo] Solenopsis version [1.1]
[echo] Solenopsis properties [/root/solenopsis.properties]
[echo]
[echo] Ant version [Apache Ant(TM) version 1.10.3 compiled on March 24 2018]
[echo] Java version [1.8]
[echo]

push:
[echo] User defined package file being used [/tmp/solenopsis/workspace/src/package.xml]
[echo]
[echo] Purging ignores is set to [false] - therefore it is skipped!
[echo]
[echo] If you want it enabled, ensure the value is not [false]. This
[echo] can be done by defining the environment variable sf.purgeIgnores to true
[echo] or any other value.
[echo]
[delete] Deleting directory /tmp/root/solenopsis/1.1/dev/push
[mkdir] Created dir: /tmp/root/solenopsis/1.1/dev/push
[copy] Copying 1 file to /tmp/root/solenopsis/1.1/dev/push
[delete] Deleting directory /tmp/root/solenopsis/1.1/dev/processImplicitIgnores-meta
[mkdir] Created dir: /tmp/root/solenopsis/1.1/dev/processImplicitIgnores-meta

Then it starts retrieving from the org and removeImplicitIgnores.
It finishes with:

[zip] Building zip: /tmp/root/solenopsis/1.1/dev/push/deploy.zip
[echo]
[echo]
[echo] Processing: [dev]
[echo]
[echo] URL: [https://test.salesforce.com/]
[echo] API: [42.0]
[echo] Destructive changes file: [destructiveChanges.xml]
[echo] Check only: [false]
[echo]
[echo] Rule all tests: [false]
[echo] Test level: [NoTestRun]
[echo]
[echo] Jar: [/tmp/solenopsis/ant/1.1/lib/ant-salesforce.jar]
[echo]
[echo]
[rh-sfdc:transformFiles] WARNING: directory is an empty string
[rh-sfdc:transformFiles] WARNING: No xsl directory found for []
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Af5E00000VYaWySAL
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: Succeeded
[sf:deploy] *********** DEPLOYMENT SUCCEEDED ***********
[sf:deploy] Finished request 0Af5E00000VYaWySAL successfully.

So my question is: why solenopsis only copies one file to the push folder and, in consequence, it does not deploys anything to our org? Every configuration looks good...
Can someone help me? Do you need additional information?

Thanks in advance.

Tiago

@pcon
Copy link
Member

pcon commented May 23, 2018

@tiagomiguelsousa thanks for trying out Solenopsis. In order to help, I'm going to need a little bit more information about what you have on disk. Can you please include the contents of your /root/solenopsis.properties file, the listing contents of your /tmp/solenopsis/workspace/src/ directory and the output of unzip -l /tmp/root/solenopsis/1.1/dev/push/deploy.zip. Also, is there a particular reason why you're calling the solenopsis.xml directly via ant instead of using the python or bash wrappers?

@tiagomiguelsousa
Copy link
Author

Hi @pcon.

Thanks for your reply.

It follows my solenopsis.properties file:

solenopsis.ENVIRONMENTS=dev int uat stg pro local
solenopsis.env.HOME=/tmp/solenopsis/workspace/
solenopsis.env.MASTER=local
sf.version=42.0
sf.maxPoll=9999999
sf.pollWaitMillis=9999999
sf.packageFile=/tmp/solenopsis/workspace/src/package.xml

In order to keep it simple, my src folder (/tmp/solenopsis/workspace/src/) , right now, only has apex classes.

No, i can not access /tmp/root/solenopsis/1.1/dev/push/deploy.zip because it's on a jenkins slave and i don't have direct access to it.

No reason. Right now i'm trying with:

/tmp/solenopsis/scripts/bsolenopsis -Dsf.env=dev -Dsf.testLevel=NoTestRun push

and i got the same results:

[e-pipeline_feature_pipeline-2GYOB77OE2VTYQB33QFO7FZM2NHE3LACCBV6RBKTEPNLFZ2UTZXQ@2] Running shell script

  • /tmp/solenopsis/scripts/bsolenopsis -Dsf.env=dev -Dsf.testLevel=NoTestRun push
    Buildfile: /tmp/solenopsis/ant/solenopsis.xml

info:
[echo]
[echo] Solenopsis release version [N/A]
[echo] Solenopsis version [1.1]
[echo] Solenopsis properties [/root/solenopsis.properties]
[echo]
[echo] Ant version [Apache Ant(TM) version 1.9.6 compiled on June 29 2015]
[echo] Java version [1.8]
[echo]

push:
[echo] User defined package file being used [/tmp/solenopsis/workspace/src/package.xml]
[echo]
[echo] Purging ignores is set to [false] - therefore it is skipped!
[echo]
[echo] If you want it enabled, ensure the value is not [false]. This
[echo] can be done by defining the environment variable sf.purgeIgnores to true
[echo] or any other value.
[echo]
[delete] Deleting directory /tmp/root/solenopsis/1.1/dev/push
[mkdir] Created dir: /tmp/root/solenopsis/1.1/dev/push
[copy] Copying 1 file to /tmp/root/solenopsis/1.1/dev/push
[delete] Deleting directory /tmp/root/solenopsis/1.1/dev/processImplicitIgnores-meta
[mkdir] Created dir: /tmp/root/solenopsis/1.1/dev/processImplicitIgnores-meta

Thanks a lot for your help. Hoping this helps you to help me... :-)

Tiago

@sfloess
Copy link
Member

sfloess commented May 29, 2018

@tiagomiguelsousa - what does your /tmp/solenopsis/workspace/src/package.xml resemble?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants