Beruflich Dokumente
Kultur Dokumente
Business Process
Automation
Olaf David
Colorado State University
Dept. of Civil Engineering, Dept. of Computer Science
US Department of Agriculture
Objective
Automate and integrate software project
management practices using CB with respect
to
◦ Trackers
◦ Forums
◦ Builds
◦ Reports
◦ Documents
◦ Users
by using an efficient scripting approach.
if (needsBuild) {
println "starting build ....“
log = proj.builds.find{it.name == “BuildApp"}.invoke()
println " Build done: ${log.status} “
println " Output: ${log.stdOut} "
}
jf.logout();
cbscript
cb-api CB Server
Java API
-Low level, session centric and stateless
-For a wide range of applications
Docs DB SCM
// do some work.
jf.logout();
// find project(s)
assert jf.projects.find{it.name == "Moose"}.id == 2374
assert jf.projects.find{it.id == 2374}.name == "Moose“
jf.projects.findAll{it.createdBy.name == "bond"}.each{
println it.name
}
bugTracker.items.findAll{
it.status != 'Closed'
}.each{
println it.name
}
newsForum.findAll{
post -> isToday(post.submitted)
}.each{
print it.text
}
news.post(
new Message(subject:"New message",
text:"Content here ...")
new File('c:/tmp/test1').withOutputStream {
it.write doc.bytes
}
bug.relate(lib, RELATED)
String wikitext =
“””!!Milestone info
* Output Log Reference: ${CB.link(result)}
“””
// resolves to:
// “ Output Log Reference : [BUILDLOG:23456]”
Examples*
Problem elevation
SCRUM support
SCM commit control
Auditable Build Management
println map
// [-7:10, -6:3, -5:12, -4:4, -3:10, -2:5, -1:1, 0:2]
f = new File(“burndown.dat”)
today = new Date()
f.append("${today} , ${hours}")
DE Feature Implemente
d
V Requests
Commit
assoc.
Commi
t
Update
Push
Pull
SC
Repo M
// login to CB
jf = CB.login("http://localhost:8080", "bond", “pass")
...
Feature
Identif
y (2
DE MG
V Requests ) R
Milestones
Build-lib
SC
M
Docume
nts
DE Feature
Requests MG
V
Issue
(3 R
Milestones
build
)
3.2
Build-lib build
3.3
log
3.1
SC
checkout/update M
3.4
<cbrelease
Docume
nts
// build check
if (!readyList.empty) {
...
DE Feature
V Requests New milestone
build
(4 MG
R
)
Milestones
Build-lib
SC
M
Docume
nts
Build-lib
SC
M
Docume
nts
SC
M
ngmf.jar
Docume
nts