Skip to main content

Questions tagged [ci]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
105 views

CI/CD error for deployment of ConversationMessageDefinition

We have CI/CD error failures when we try to validate or deploy ConversationMessageDefinition src/conversationMessageDefinitions/ComForum.conversationMessageDefinition-meta.xml: Could not infer a ...
Patlatus's user avatar
  • 17.4k
0 votes
1 answer
41 views

force:apex:test:run throws error in CI: "No tests were able to be executed on the org. Please verify that the source code has been pushed correctly"

Upon attempting to run Apex tests via CI using command "force:apex:test:run" in a packaging org, I get the following error: "An unknown exception occurred. No tests were able to be ...
Andrei Migachev's user avatar
0 votes
1 answer
44 views

Getting NamespacePrefix as null while running run_tests task with cumulusci

I am trying to run apex test with CumulusCI, I am running on Unmanaged code(Scratch orgs) I have set my name space in cumulusci.yml minimum_cumulusci_version: '3.1.2' project: name: AmpImpact ...
Pronit Agrawal's user avatar
0 votes
1 answer
395 views

force:mdapi:deploy failing with "An object of type was named in package.xml, but was not found in zipped directory"

We're using SFDX in Azure DevOps for CI. Our workflow is basically: Dev creates a git branch for feature Dev develops feature in their own sandbox Dev creates PR to merge feature into integration ...
AvailableName's user avatar
0 votes
0 answers
108 views

Reduce Creation Time: NebulaLogger in a Scratch Org during CI

We want to use NebulaLogger. We also have a CI job that creates a scratch org on a new Pull Request. Technically everything works fine. The only issue is the time it takes to create a scratch org ~40 ...
Eduard's user avatar
  • 5,181
0 votes
1 answer
171 views

How to test a jsforce Node app that requires a security token?

Our Node app that uses jsforce bulk upload APIs has a configuration file including this information: "salesforce" : { "username": "[email protected]", &...
Keith C's user avatar
  • 137k
1 vote
1 answer
304 views

How to include a "Guest User License" profile in the CI for a Digital Experience

Digital Experiences are turned on via the communities feature switch in the scratch org definition. But that feature switch does not make the "Guest User License" type available that is ...
Keith C's user avatar
  • 137k
1 vote
0 answers
290 views

How to safely store the Auth. Provider metadata in the git repository without revealing its secret?

I have an authprovider metadata stored in Git repo with the following body: <?xml version="1.0" encoding="UTF-8"?> <AuthProvider xmlns="http://soap.sforce.com/2006/04/...
Przemysław Długoszewski-Tamoń's user avatar
1 vote
0 answers
129 views

We have recently migrated to govcloud+ and no longer able to authenticate to scratch org using jwt from devhub as part of our CI

Below is our auth approach into scrath orgs to allow us to login and serve them as part of a "scratch-org-pool-service". export SFDX_AUDIENCE_URL="https://test.salesforce.com" echo ...
jschleicher's user avatar
0 votes
1 answer
614 views

How to inactivate a validate rule using SFDX command

Is there any way that we can inactive/deactivate a validation rule using SFDX command? I have researched completely. And I thought that force:source:deploy would help, but it seems to be a little ...
Rahul Allada's user avatar
7 votes
1 answer
518 views

Github Workflow for Package Development

To better maintain my OSS repositories I am looking for a simple but elegant Github workflow that covers all steps of a DX development process that ends with a package version (unlocked/managed): ...
Robert Sösemann's user avatar
2 votes
2 answers
622 views

Connecting Github actions to my salesforce

i am starting to learn CI/CD and i want to create Github actions for my salesforce project. for when I need the SFDX URL, the format is this ( after executing force:force:org:display -u ORG-ALIAS --...
Oussama Boumhaout's user avatar
0 votes
1 answer
85 views

Linux version of SFDX fails to provide results for "sfdx force:user:list" command

When I tried to build a dynamic script in GitHub Actions using SFDX, I have been puzzled by the weird behaviour of sfdx force:user:list --json command in linux version of SFDX. In MacOS version of ...
Patlatus's user avatar
  • 17.4k
0 votes
1 answer
303 views

Cumulus CI: Cannot connect sandbox org after upgrade to latest version (3.35.0)

We are playing around with Cumulus CI and trying to connect our existent sandbox org to be able to execute different Cumulus commands against it. Running the following command according to ...
wesaw's user avatar
  • 3,140
4 votes
0 answers
223 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&...
Keith C's user avatar
  • 137k
0 votes
1 answer
187 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 ...
AjFmO's user avatar
  • 292
0 votes
1 answer
585 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 ...
Thomas's user avatar
  • 2,320
0 votes
1 answer
360 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 ...
Thomas's user avatar
  • 2,320
0 votes
1 answer
1k 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, ...
Thomas's user avatar
  • 2,320
1 vote
0 answers
266 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. ...
torpy's user avatar
  • 355
0 votes
1 answer
298 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 ...
hlopetz's user avatar
  • 247
5 votes
1 answer
1k 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....
Shane Kenyon's user avatar
  • 1,095
0 votes
0 answers
286 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 ...
Szosteczka's user avatar
0 votes
1 answer
197 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 ...
Vickal's user avatar
  • 592
2 votes
1 answer
266 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 ...
Pronit Agrawal's user avatar
0 votes
1 answer
80 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?
Coding Artist's user avatar
1 vote
2 answers
126 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 ...
dzh's user avatar
  • 4,165
5 votes
1 answer
1k 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 ...
Grokodile's user avatar
  • 673
5 votes
2 answers
3k 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)...
Mossi's user avatar
  • 3,996
2 votes
1 answer
1k 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 --...
Theodoor's user avatar
  • 463
4 votes
1 answer
2k 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; ...
NSjonas's user avatar
  • 10.2k
4 votes
0 answers
145 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 ...
cropredy's user avatar
  • 72.5k
0 votes
1 answer
2k 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 ...
Tamil's user avatar
  • 742
1 vote
2 answers
797 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 ...
devforce's user avatar
  • 1,573
1 vote
1 answer
1k 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 '...
Ranga's user avatar
  • 1,722
1 vote
2 answers
1k 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 ...
Andrea DL's user avatar
5 votes
3 answers
4k 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 ...
hessbag's user avatar
  • 53
12 votes
3 answers
2k 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. ...
Robert Sösemann's user avatar
4 votes
4 answers
9k 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) ...
ab0369's user avatar
  • 375
0 votes
1 answer
4k views

Azure DevOps as CI/CD tool for Salesforce [closed]

Has someone tried using Azure DevOps as CI/CD tool for a 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 ...
being of habits's user avatar
1 vote
1 answer
178 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 ...
vt89's user avatar
  • 725
0 votes
1 answer
999 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:...
Christian Moustrides's user avatar
2 votes
3 answers
712 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 ...
smukov's user avatar
  • 5,613
0 votes
1 answer
946 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 ...
mascot's user avatar
  • 593
6 votes
2 answers
690 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 ...
Davin Casey's user avatar
  • 4,217
7 votes
2 answers
2k 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 ...
Jacob's user avatar
  • 81
0 votes
1 answer
324 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 ...
Alan Feng's user avatar
1 vote
0 answers
61 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 ...
asbestossupply's user avatar
2 votes
1 answer
845 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 ...
Davin Casey's user avatar
  • 4,217
3 votes
2 answers
2k 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 ...
wesaw's user avatar
  • 3,140