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

Difference between....? #5

Open
donovanrost opened this issue Aug 18, 2022 · 1 comment
Open

Difference between....? #5

donovanrost opened this issue Aug 18, 2022 · 1 comment

Comments

@donovanrost
Copy link

Is there a technical difference between

  sh "curl ...."

and

loadLinuxScript(name: 'script-which-calls-curl')
sh 'script-which-calls-curl'

I know the loadLinuxScript will execute on the worker. Will the inline curl execute on the worker or the master?

@ankujuniyal
Copy link

loadLinuxScript.groovy also don't have node definition. so when we import loadLinuxScript in jenkins file according to that will pick(preferred is worker in case no executor then it should be from master). So goes to sh "curl "
@darinpope please correct me if i'm wrong.

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