script to delete jobs
Moderators: chulett, rschirm, roy
script to delete jobs
Hi,
I want to write a script that, among other things, deletes a number of jobs from a project. Is this possible?
ta.
I want to write a script that, among other things, deletes a number of jobs from a project. Is this possible?
ta.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yeah, why? I can't think of any reason for wanting to do that. The number of keystrokes required to create the script is probably more than the number of mouse clicks required to delete the jobs using the GUI.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Let's await rtan's answer to the "why" question.
Sure it can be done by hacking the Repository tables (not sure yet how to do this via the Metadata Delivery Service in Hawk, though). But this is definitely a high risk "solution" in inexperienced hands. What if the wrong piece is accidentally deleted? Do you force an export beforehand so that pieces can be recovered? Already you're taking more time than using the GUI client to delete jobs.
Further, using the GUI client means that DS_AUDIT is updated, so that there's a record of by whom and when the object was deleted. Would that capability need to be included in the script?
Sure it can be done by hacking the Repository tables (not sure yet how to do this via the Metadata Delivery Service in Hawk, though). But this is definitely a high risk "solution" in inexperienced hands. What if the wrong piece is accidentally deleted? Do you force an export beforehand so that pieces can be recovered? Already you're taking more time than using the GUI client to delete jobs.
Further, using the GUI client means that DS_AUDIT is updated, so that there's a record of by whom and when the object was deleted. Would that capability need to be included in the script?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi all,
i'd like to automate the process of deleting an existing build and importing a full build. At the moment, I have a batch script which extracts a full build from VSS and imports it into DSManager. However, before this happens I have to manually delete the jobs/folders from manager. So to answer the 'why' question - it's purely to have an automated process for build migration.
thanks
i'd like to automate the process of deleting an existing build and importing a full build. At the moment, I have a batch script which extracts a full build from VSS and imports it into DSManager. However, before this happens I have to manually delete the jobs/folders from manager. So to answer the 'why' question - it's purely to have an automated process for build migration.
thanks
Why not version builds at a project level? For every major build, start a new project. For minor patch migrations, just overlay.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
But simply importing through your script will overwrite everything which should suit your purpose. If you are talking about removing all the instances of each job you just need to force compile all jobs.rtan wrote:Hi all,
i'd like to automate the process of deleting an existing build and importing a full build. At the moment, I have a batch script which extracts a full build from VSS and imports it into DSManager. However, before this happens I have to manually delete the jobs/folders from manager. So to answer the 'why' question - it's purely to have an automated process for build migration.
thanks
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Beat me to it!! All you need to do then is delete those few jobs, if any, that are not in the new build. You will be able to generate a list of these from VSS.
I continue to recommend a manual process, or hire an expert (who is cognizant of the dangers) to create your script. Your support provider will be able to source one, IBM can provide these services, some of the posters here can also do so.
I continue to recommend a manual process, or hire an expert (who is cognizant of the dangers) to create your script. Your support provider will be able to source one, IBM can provide these services, some of the posters here can also do so.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
And so they won't discuss the steps to do it. Cuz u kn, u gotta burn ur fingers to learn this stuff. For the bravehearts, I will urge em to use the long weekendray.wurlod wrote:
I continue to recommend a manual process, or hire an expert (who is cognizant of the dangers) to create your script. Your support provider will be able to source one, IBM can provide these services, some of the posters here can also do so.
![Twisted Evil :twisted:](./images/smilies/icon_twisted.gif)
![Twisted Evil :twisted:](./images/smilies/icon_twisted.gif)
![Idea :idea:](./images/smilies/icon_idea.gif)
If you are caught in the act ... voila, ur fingers will be intact. Ur a** will be in line of course.
![Laughing :lol:](./images/smilies/icon_lol.gif)
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.