You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may sound easy for experts, but customers might need to delete "old left" collections at DBB repo. @drbruce-github showed a nice simple example at https://ibm-systems-z.slack.com/archives/C2TBPA725/p1587140011114100?thread_ts=1586352800.067200&cid=C2TBPA725
Here for people that do not have slack:
``//Delete a collection XXX
//repositoryClient.deleteCollection("XXX")
@groovy.transform.BaseScript com.ibm.dbb.groovy.ScriptLoader baseScript
import com.ibm.dbb.build.*
import com.ibm.dbb.repository.*
//Set up repository client
BuildProperties properties = BuildProperties.getInstance()
properties.load(new File("${getScriptDir()}/user.properties"))
if(!properties.url||!properties.username){
println("You must update the user.properties file first")
System.exit(0)
}
def client = new RepositoryClient()
client.setUrl(properties.url)
client.setUserId(properties.username)
if(properties.password!=null){
client.setPassword(properties.password)
}else if(properties.passwordFile!=null){
client.setPasswordFile(new File(properties.passwordFile))
}else{
println("Please enter either a password or the path for a password file in user.properties")
System.exit(0)
}
client.setForceSSLTrusted(true)
//Delete a collection XXX
client.deleteCollection("XXX")
println("XXX is deleted")
The text was updated successfully, but these errors were encountered:
It may sound easy for experts, but customers might need to delete "old left" collections at DBB repo.
@drbruce-github showed a nice simple example at
https://ibm-systems-z.slack.com/archives/C2TBPA725/p1587140011114100?thread_ts=1586352800.067200&cid=C2TBPA725
Here for people that do not have slack:
``//Delete a collection XXX
//repositoryClient.deleteCollection("XXX")
@groovy.transform.BaseScript com.ibm.dbb.groovy.ScriptLoader baseScript
import com.ibm.dbb.build.*
import com.ibm.dbb.repository.*
//Set up repository client
BuildProperties properties = BuildProperties.getInstance()
properties.load(new File("${getScriptDir()}/user.properties"))
if(!properties.url||!properties.username){
println("You must update the user.properties file first")
System.exit(0)
}
def client = new RepositoryClient()
client.setUrl(properties.url)
client.setUserId(properties.username)
if(properties.password!=null){
client.setPassword(properties.password)
}else if(properties.passwordFile!=null){
client.setPasswordFile(new File(properties.passwordFile))
}else{
println("Please enter either a password or the path for a password file in user.properties")
System.exit(0)
}
client.setForceSSLTrusted(true)
//Delete a collection XXX
client.deleteCollection("XXX")
println("XXX is deleted")
The text was updated successfully, but these errors were encountered: