Questions tagged [ci]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
0answers
22 views

Scratch org Experiences/Communities features missing about 25% of the time

We have a Jenkins build that creates scratch orgs using this project-scratch-def.json: { "orgName": "Xyz", "edition": "Developer", "features&...
0
votes
1answer
55 views

Error in Travis CI build, trying to complete SFDX Travis CI Trailhead module

I've been struggling a lot trying to complete this trailhead module. The first issue was while trying to log in with GitHub creds, which I solved using the GitHub-token flag. Now, after I Kick-off ...
0
votes
1answer
25 views

Is it possible to overwrite custom fields from an unlocked package

I am creating an unlocked package from a separate Developer edition. In a sandbox we are adding custom fields which at first are not clear if they have to be added to the package to gain speed. Is it ...
0
votes
1answer
42 views

CI Continuous Integration with AWS & Jenkins

I found some examples how to implement CI with AWS ad Jenkins but none of these examples explains clearly what AWS does. As i understood Jenkins is the CI server that interacts between master branch ...
0
votes
1answer
44 views

Dev hub in Developer org is this possible

Is it possible to turn on Dev hub in a developer org?. I want to make an unlocked package to install in a production org with several packages where my package should communicate to another package, ...
1
vote
0answers
36 views

CircleCI, re-run tests that failed in parallel mode during build

note: I'm stuck in an org-centric world, so CircleCI is setup w/my dev sandbox, not scratch orgs. Recently, I set up a CircleCI build to run my sandbox orgs tests w/RunLocalTests on each pull request. ...
0
votes
1answer
113 views

Unable to invoke async test job: Subscriber handshake failed due to a socket timeout

there is a known issue SFDX- when using in JENKINS :sfdx force:apex:test:run: An ERROR: Unable to invoke async test job: Subscriber handshake failed due to a socket timeout on trailblazer site with no ...
4
votes
1answer
180 views

Salesforce CLI deploy files with spaces failing

I am trying to deploy files to a non-source tracked org with the cli deploy command as follows: sfdx force:source:deploy -u [ORG] -p "force-app/main/default/layouts/Snapshot__mdt-Snapshot Layout....
0
votes
0answers
80 views

Ant validation/deployment errors using sessionId

I have a weird problem with Ant setup on CI. I have a script that fetches access token using JWT. The token is retrieved successfully, and when I want to use it with Ant deployment (switching in ant ...
0
votes
1answer
73 views

Implement CI/CD using Bitbucket/Git and Codeship

I'm trying to implement CI/CD using Bitbucket and Codeship(a CD tool like Jenkins) to achieve continuous deployment in Salesforce Orgs along with code versioning. I'm confused with the new folder ...
2
votes
0answers
36 views

UNABLE_TO_LOCK_ROW error while running salesforce apex test on circleci

I'm getting UNABLE_TO_LOCK_ROW while running the apex test on CircleCI How can I avoid the deadlock while running tests?This is due to parallel execution of test(Not sure about this). Do We have ...
0
votes
1answer
48 views

Jenkins CI and SFDX [closed]

Do we need to learn Groovy language to start using Jenkins CI with SFDX? is there any other way to do it?
1
vote
2answers
56 views

What is needed to persist sfdx org between CI runs

I'm running Github Actions and trying split multiple UI tests into separate jobs. Part of the task is to copy the file system artefacts for next job to use (each job starts in a fresh container). I ...
0
votes
0answers
23 views

Running CI sfdx tests against partial copy sandbox has become team bottleneck

We have a fairly standard development workflow: We run Apex tests (via sfdx --checkonly) for every commit on pull requests we make on Github We run tests on every merge commit to our master branch, ...
0
votes
0answers
107 views

Failing a Gitlab Pipeline Job Based on Failed Deploy

I have a Gitlab Pipeline job that runs the sfdx force:source:deploy command to deploy a repository to a sandbox org. The command itself is running correctly through the Pipeline job and a Salesforce ...
4
votes
1answer
396 views

What's the purpose of the SalesforceDX Namespace Registry Connected App?

We have an existing Managed Package for which I'm setting up CI (continuous integration) with sfdx. For packaging automation we will call force:source:convert followed by force:mdapi:deploy and ahead ...
5
votes
2answers
1k views

CI/CD with package.xml: how to deploy incrementally?

I have the following CI flows setup in my git repo: Deploy to Staging org when master branch is updated (automated) Deploy to Production org from master branch as initiated by Release Manager (manual)...
1
vote
1answer
510 views

Error invalid_grant - expired authorization code while running sfdx force:auth:jwt:grant

I run the command from my build job within Teamcity CI: sfdx force:auth:jwt:grant --clientid '%SFDX_HUB_CONSUMER_KEY%' --jwtkeyfile config/server.key --username %SFDX_HUB_USERNAME% --setalias hub1 --...
3
votes
1answer
320 views

Classifying metadata into destructiveChangesPre.xml vs destructiveChangesPost.xml

I understand how both destructiveChangesPre.xml & destructiveChangesPost.xml work, but I'm wondering if it's possible to algorithmically classify metadata deletions between the two (theoretically; ...
4
votes
0answers
44 views

Deploy Shield encryption & run tests in same deployment - fails

Given You have a CI org with a class that does [Select Id From SomeObject WHERE Field__c IN :vals] Tests run fine in the CI org When You decide to deterministically, case-insensitive encrypt ...
0
votes
1answer
679 views

Jenkins + Sfdx Auth issue

I am trying to use Jenkins for my project CI. I followed the salesforce document and a few blogs for the setup. Here is my Jenkinsfile: #!groovy import groovy.json.JsonSlurperClassic node { def ...
0
votes
2answers
525 views

Benefits of Salesforce integration with GitLab over salesforce DX?

Salesforce has partnered with GitLab. Salesforce DX tools enable test automation and continuous delivery,but getting started can be daunting.We have partnered together to provide templates that ...
1
vote
1answer
456 views

SFDX deploying Contact Sharing rules on a fresh deployment

I'm trying to deploy a Contact sharing rule into a new scratch org and I get following error. Deploying sharing rule xxxxx not supported for object Contact since it's org wide default is '...
1
vote
2answers
460 views

Automatic deploy from repository to org [closed]

We are trying to implement an automatic deploy from a Git repository to Salesforce. We have all the metadata in a repository and so far, we were able to deploy a subset of these metadata doing these ...
5
votes
2answers
1k views

How do I view a list of packages installed in a DevHub org using the SFDX CLI?

When I run: sfdx force:package:installed:list -u DevHub (where DevHub is the alias of my production org, which IS enabled as Dev Hub and also has 2GP enabled) I receive this error: ERROR ...
12
votes
3answers
900 views

Efficiently merge handle parallel feature branches in SFDX

Imagine a team of 5 developers using DX scratch orgs (using Salesforce' Falcon Template) for working on multiple features in parallel. They start from a clean packaging org and a clean Git master. ...
3
votes
4answers
4k views

How to get all metadata into Git and What will the optimal release flow using sandboxes?

The current development and deployment is from sandbox to sandbox and the plan is to move to git based deployments. What is the best way to get all the metadata of an existing org into Git(bitbucket) ...
1
vote
1answer
2k views

Azure DevOps as CI for Salesforce

Have someone tried Azure DevOps as a CI tool for Salesforce project? If so, what are the cons? Am I able to use sfdx or at least ant scripts for testing and deploying? If Azure is not an option, ...
1
vote
1answer
146 views

Continuous Integration and Salesforce Metadata

I am trying to find a Continuous Integration solution not only for Apex code, Visualforce and Lightning Component but also for other Metadata. For example, I would check if on a Remote Site the Admin ...
0
votes
1answer
414 views

ERROR: Invalid record ID. Specify valid record ID value

I have set up Travis CI based on the salesforce trailhead for it, I have used the .travis.yml file, completed the steps. However, when the Travis CI tries to create a scratch org (sfdx force:org:...
2
votes
3answers
506 views

SFDX CI: Invalid record ID. Specify valid record ID value

I'm trying to follow Continuous Integration Using Salesforce DX trailhead module, however, I'm using my own repo (I didn't clone the sample repo that is provided). I've used their .travis.yml file ...
0
votes
1answer
622 views

Pass variables to build.xml from VSTS build [closed]

I'm setting up the build pipeline in VSTS (Visual Studio Team Services), and I'm not able to pass a variable to the build. I don't know what the syntax should I use actually to get the variable in the ...
6
votes
2answers
457 views

Scratch org. default workflow user

Is it possible to programmatically set the default workflow user in a scratch org? My use is that I'm spinning up a fresh scratch org. as part of my CI pipeline. I could (and currently do) use a ...
7
votes
2answers
1k views

Using SFDX For CI with Communities, how to activate Community to get Guest UserLicense

I am working on a new implementation of Communities for a project using SFDX. I pulled in the relevant files related to hosting a community but when I do a sfdx force:source:push I get an error on the ...
0
votes
1answer
217 views

Hang on JWT auth in Jenkins Create Scratch Org stage on OSX

I have followed the steps in the Salesforce Developer page to setup Jenkins for SFDX CI build. It always hangs on the task: rc = sh returnStatus: true, script: "${toolbelt}/sfdx force:auth:jwt:grant ...
1
vote
0answers
59 views

CI server when using DX

I have a managed package. Since converting the code to DX I have struggled to create a continuous integration server. I'm hoping someone can give me some pointers. We use a GitHub flow for managing ...
2
votes
1answer
541 views

SFDX orgs resetting between Bitbucket Pipelines steps

I'm trying to set up sfdx on Bitbucket Pipelines. It's going well but I'm facing a weird issue when using the steps feature. Here's a snippet of my build file: - step: name: Auth. with ...
3
votes
2answers
1k views

Summer18: Test only deployment cannot insert a new Master-Detail field

Today SF has just pushed Summer18 (api version 43) to our sandboxes. And now when our CI process is trying to validate code from branch against empty SF org, it throws bunch of same error messages ...
3
votes
1answer
1k views

Continuous integration of Salesforce with CircleCI

I want to setup our Continuous Integration with CircleCI. I want our GitHub to deploy our code to a central test org anytime a developer pushes changes to run all the Apex tests and make sure that ...
3
votes
1answer
712 views

Unable to authorise dev hub on jenkins with it hanging on the force:auth:jwt:grant step

Issue I am trying to setup jenkins to build using the Jenkinsfile and the sfdx cli. I have been following the steps and examples here. I have followed the steps and tried a few times from scratch but ...
0
votes
2answers
525 views

Is Salesforce DX compatible with Classic?

There is no answer in the documentation. Thanks
12
votes
3answers
5k views

How to install managed package using Salesforce DX CLI?

I am trying to follow the Trailhead module on CI and Salesforce DX. I tried to push some of my Lightning components which depend on a managed package in App Exchange. I would like to know how to ...
7
votes
2answers
6k views

Run Specific Tests with Ant Deploy specified by command line or file

When deploying with ant you have the option to specify which tests to run, e.g. <target name="deploy"> <sf:deploy username="${sf.username}" password="${sf.password}" ...
0
votes
1answer
142 views

Continuous Integration in Salesforce for Packaging Orgs with Jenkins, Bit Bucket

We have different Packing orgs in our company with different functionalities. we want to setup continuous integration with these orgs and Jenkins server. Could someone suggest me how to set up CI for ...
1
vote
2answers
716 views

Salesforce and Continuous Integration

I want to use CI in our company with ANT Migration Tool. In our case TeamCity, but it doesn't matter. We have our Production organization and a few sandboxes. Developer sandbox, QA sandbox, UAT ...
1
vote
1answer
30 views

Report test failures directly into github in a Salesforce/Github CI environment?

Wondering if any wizards out there possess code or a recipe that, upon a pull request, executes all tests and reports failures directly back into Github?
6
votes
1answer
1k views

What is a good and free static apex code review plugin for IDEA, eclipse and ANT?

Java has a number of useful and FREE tools for reviewing not just formatting and style but quality of code and bad coding habits. Checkmarx and Code scan could work but they are not free and open ...
6
votes
1answer
1k views

Jenkins + Force.com Migration Tool - REQUEST_RUNNING_TOO_LONG

I am currently receiving a REQUEST_RUNNING_TOO_LONG error when using the Force.com Mirgration Tool and Ant with Jenkins. I've read quite a few posts about this error and understand that this is ...
1
vote
1answer
766 views

Set up Travis CI with Salesforce.com

I hope someone out there can help setting up Travis CI with Salesforce.com. I started by looking into this guide: http://blog.deadlypenguin.com/blog/2015/04/22/travis-ci-salesforce/, So far without ...
2
votes
0answers
64 views

it is possible get Salesforce ChangeSet components throw API or Apex? [duplicate]

I just wondering about the way to retrieve information from a changeset, I want to use it for source control proposes. Someone know a way to do this?