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

Get jid from salt statement #147

Open
mturra-Pro opened this issue Feb 25, 2021 · 1 comment
Open

Get jid from salt statement #147

mturra-Pro opened this issue Feb 25, 2021 · 1 comment

Comments

@mturra-Pro
Copy link

I use the following code in a pipeline, but in the saltresult the jid (job id) isn't reported.

                   saltresult = salt authtype: 'pam', 
                      clientInterface: local(arguments: "${arguments}", blockbuild: true, function: 'state.apply', jobPollTime: 6, target: "${MINION}", targettype: 'glob'), 
                      credentialsId: 'my-credentialsId', 
                      servername: 'http://saltmaster:8000'

How can I get the jid to use in the pipeline script?

Thanks in advance

@mchugh19
Copy link

Hello @mturra-Pro. Can you test with setting blockbuild: false. Rather than having Jenkins wait around for the job results to parse success/failure, this should simply return the jid so you can process as you like.

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

No branches or pull requests

2 participants