Hi Team,
I’m writing an powershell script to deploy source code(n number of objects) from source repository to target repository with some inbuild commands support by ETL product.
Now question is the n number of objects will change dynamically from one release to another release.In one deployment i may deploy 5 number of objects and in another deployment i can deploy 10 number of objects.
Is there any way how to handle this situation in powershell script(by using arrays and for loops.
Basically my script will like this
1.command to connect to source repository
2. Cretae label
3.Apply label to n number of objects(n number depends on deployment,it will vary from one deployment to another deployment)
Here i want some powershell script to apply label to n number of objects.I can simply manually use objects names in apply label like
Apply label -obj name1 -obj name2…obj name n
But i want powershell script to take number of objects as N and take their names from an text file.
Please help me.
Br,jan
+91-7738783959