Ticket #41: buildbot-svn-passwd.patch
| File buildbot-svn-passwd.patch, 3.3 kB (added by leoh, 2 years ago) |
|---|
-
buildbot-0.7.5/slave/commands.py
old new 1434 1434 handled by SourceBase, this command reads the following keys: 1435 1435 1436 1436 ['svnurl'] (required): the SVN repository string 1437 ['username'] Username passed to the svn command 1438 ['password'] Password passed to the svn command 1437 1439 """ 1438 1440 1439 1441 header = "svn operation" … … 1443 1445 self.vcexe = getCommand("svn") 1444 1446 self.svnurl = args['svnurl'] 1445 1447 self.sourcedata = "%s\n" % self.svnurl 1448 self.username = args.get("username", None) 1449 self.password = args.get("password", None) 1446 1450 1447 1451 def sourcedirIsUpdateable(self): 1448 1452 if os.path.exists(os.path.join(self.builder.basedir, … … 1457 1461 d = os.path.join(self.builder.basedir, self.srcdir) 1458 1462 command = [self.vcexe, 'update', '--revision', str(revision), 1459 1463 '--non-interactive'] 1464 if self.username: 1465 command += ['--username', self.username] 1466 if self.password: 1467 command += ['--password', self.password] 1460 1468 c = ShellCommand(self.builder, command, d, 1461 1469 sendRC=False, timeout=self.timeout, 1462 1470 keepStdout=True) … … 1468 1476 d = self.builder.basedir 1469 1477 if self.mode == "export": 1470 1478 command = [self.vcexe, 'export', '--revision', str(revision), 1471 '--non-interactive', 1472 self.svnurl, self.srcdir] 1479 '--non-interactive'] 1473 1480 else: 1474 1481 # mode=='clobber', or copy/update on a broken workspace 1475 1482 command = [self.vcexe, 'checkout', '--revision', str(revision), 1476 '--non-interactive', 1477 self.svnurl, self.srcdir] 1483 '--non-interactive'] 1484 if self.username: 1485 command += ['--username', self.username] 1486 if self.password: 1487 command += ['--password', self.password] 1488 command += [self.svnurl, self.srcdir] 1478 1489 c = ShellCommand(self.builder, command, d, 1479 1490 sendRC=False, timeout=self.timeout, 1480 1491 keepStdout=True) -
buildbot-0.7.5/steps/source.py
old new 379 379 self.svnurl = svnurl 380 380 self.baseURL = baseURL 381 381 self.branch = defaultBranch 382 self.username = kwargs.get("username") 383 if "username" in kwargs: 384 del kwargs["username"] 385 self.password = kwargs.get("password") 386 if "password" in kwargs: 387 del kwargs["password"] 382 388 383 389 Source.__init__(self, **kwargs) 384 390 … … 450 456 self.args['svnurl'] = self.baseURL + branch 451 457 self.args['revision'] = revision 452 458 self.args['patch'] = patch 459 if self.username: 460 self.args['username'] = self.username 461 if self.password: 462 self.args['password'] = self.password 453 463 454 464 revstuff = [] 455 465 if branch is not None and branch != self.branch:
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)