]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
added feature branch support
authorSebastian Riemer <sebastian.riemer@profitbricks.com>
Tue, 31 Jan 2012 13:51:56 +0000 (14:51 +0100)
committerSebastian Riemer <sebastian.riemer@profitbricks.com>
Tue, 31 Jan 2012 13:51:56 +0000 (14:51 +0100)
kernel_inpbuilder.py

index 66905fea507bdbdb8bac661954372843678ba8cd..81c6bdb9d173a0c8f05626540bbe574c3fb4fe1c 100644 (file)
@@ -266,6 +266,8 @@ def determine_kernel_flavour():
         debian_version = '$(version)-%s+%s' % (pb_version, REVISION)
     elif GIT_BRANCH_NAME.startswith('release') or GIT_BRANCH_NAME.startswith('hotfix'):
         debian_version = '$(version)-%s~rc%s' % (pb_version, REVISION)
+    elif GIT_BRANCH_NAME.startswith('feature'):
+        debian_version = '$(version)-%s~experimental%s' % (pb_version, REVISION)
     else:
         debian_version = '$(version)-%s~develop%s' % (pb_version, REVISION)
 
@@ -314,7 +316,6 @@ def install_extra_modules():
 
     return True
 
-
 if __name__ == '__main__':
     logger = logging.getLogger(sys.argv[0])
     logger.setLevel(logging.DEBUG)
@@ -444,7 +445,10 @@ if __name__ == '__main__':
         logger.error('Cannot login via ftp...')
         exit(ERROR)
 
-    ftp.cwd('/srv/profitbricks-repository/incoming')
+    if GIT_BRANCH_NAME.startswith('feature'):
+        ftp.cwd('/srv/dev-repository/incoming')
+    else:
+        ftp.cwd('/srv/profitbricks-repository/incoming')
 
     logger.info('FTP Login on %s successful' %(ftp.host))
 
@@ -452,6 +456,8 @@ if __name__ == '__main__':
         ftp.cwd('production-proposed-updates')
     elif GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix/'):
         ftp.cwd('staging');
+    elif GIT_BRANCH_NAME.startswith('feature'):
+        ftp.cwd('experimental');
     else:
         ftp.cwd('pre-staging');
     logger.info('FTP working directory: %s' %(ftp.pwd()))