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

Is it possible to create a required version of package.xml while triggering the Build ? #582

Closed
sairohith1009 opened this issue Apr 27, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@sairohith1009
Copy link

sairohith1009 commented Apr 27, 2023

What is the problem?

I want package.xml version as 52
But i'm getting 56.

The below are the commands that i'm executing for generating the delta folder and package.xml
sh 'npm install sfdx-cli --global --force'
sh 'sfdx --version'
sh 'sfdx update'
sh 'sfdx plugins'
sh 'echo y | sfdx plugins:install sfdx-git-delta@v5.11.3'
sh 'mkdir -p Delta_pkg/'
if (env.GIT_BRANCH == 'develop' || env.CHANGE_TARGET == 'develop'){
sh 'sfdx sgd:source:delta -t HEAD -f b71f5d1aafa97cd2b95c914c345b730ab4818829 --output "Delta_pkg/" --generate-delta'
}

What is the expected result?

i was expecting to have generate the package.xml with the specified version

What is the actual result?

Steps to reproduce


Execution context


Operating System:

yarn version:

node version:

git version:

sfdx version:

sgd plugin version:

More information (optional)


@sairohith1009 sairohith1009 added the bug Something isn't working label Apr 27, 2023
@scolladon
Copy link
Owner

Hi @sairohith1009 !

You definitely can ! Just use the -a parameter !

@scolladon scolladon added question Further information is requested and removed bug Something isn't working labels Apr 27, 2023
@sairohith1009
Copy link
Author

Thank you so much for the quick reply @scolladon.
is this the correct command to execute ?

sfdx sgd:source:delta -t HEAD -f b71f5d1aafa97cd2b95c914c345b730ab4818829 --output "Delta_pkg/" --generate-delta -a "52.0 "

If not, could you please paste any example command here.

@scolladon
Copy link
Owner

scolladon commented Apr 27, 2023

Sure,
I think what you wrote will work.
You could also pass it like that: -a 52
It is enough.

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

No branches or pull requests

2 participants