HI,
Could you please provide a snippet of connection establish to mongodb from groovy script.
HI,
Could you please provide a snippet of connection establish to mongodb from groovy script.
Best answer by dima
If you want to do this once per pipeline run, I'd simply use the Pipeline Start event to call a Shell executor and have the mongo shell drop your collection for you (you'd just need to have that installed on your Data Collector node). Seems a lot easier than dealing with packages and Groovy code.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.