I am new to Salesforce and SFDX CLI.
I need to implement CI / CD for one of my client.
To start with basic I created Dev Org using Visual Studio Code and committed same to GitHub. Integrated SFDX CLI with Jenkins and configured JWT based authentication to Salesforce Dev Org by creating new Connected App. Authorized Salesforce org using JWT based authentication.
Now, whenever there is new commit to the repo I need to deploy it using Jenkins pipeline and for that I tried with below stage in Jenkins but got error
"stack": "ComponentSetError: No source-backed components present in the package.\n
stage('Push code to org') {
steps {
script {
withCredentials([file(credentialsId: 'CREDENTIAL_ID_HERE', variable: 'VARIABLE_NAME_HERE')]) {
rc = command "${toolbelt}/sfdx force:source:deploy --sourcepath=manifest -u username_here -w 180 -c --json"
}
}
}
}
Below is the snapshot from my VS Code
Can anyone help me on this or may be point me to documentation where I can explore more about Salesforce deployment and correct way to implement CI / CD using Jenkins, SFDX CLI and GitHub. I do not see enough documentation for Salesforce CI / CD implementation.
Update: Adding sfdx-project.json file content for reference.
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"name": "sfdx-demo",
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "54.0"
}
Thanks!
sfdx-project.json
file please.