You need to sign in to do that
Don't have an account?
Adelchi Pelizzo
sfdx force:create:org output null
No output returned after scratch org has been created using Jenkinsfile:
The scratch org is created ok.
Thank you for any comment.
Adelchi
stage('Create Scratch Org') { rmsg = bat returnStdout: true, script: "${toolbelt} sfdx force:org:create --definitionfile config/project-scratch-def.json --json --setdefaultusername" // rmsg is: null println("Returned>>" + printf(rmsg)) // log : Returned >> null printf rmsg def jsonSlurper = new JsonSlurperClassic() def robj = jsonSlurper.parseText(rmsg) if (robj.status != "ok") { error 'org creation failed: ' + robj.message } SFDC_USERNAME=robj.result.username robj = null }
The scratch org is created ok.
Thank you for any comment.
Adelchi
... but I need it during the jenkins process to retrieve username.