Builderfyer ofrece al usuario crear algunos pilotos automáticos estándar para su proyecto. En otras palabras builderfy le proporciona una manera de implementar los trabajos de construcción a Jenkins que están configuradas para su proyecto.
El comando de ayuda es una breve y así como abstracto interesante para el usuario. Proporciona información sobre su principal papel , los detalles de parámetros alternativos que pueden ser utilizados en las declaraciones. La sintaxis utilizada para la declaración de opción de ayuda se da a continuación ,
ptdeploy builderfy help
La representación gráfica de la orden anterior se enumeran a continuación ,
kevell@corp:/# ptdeploy builderfy help
******************************
This is a default Module and provides you a way to deploy build jobs to jenkins that are configured for your project.
Builderfy, builderfy
- developer
Create a developers build for this project
example: ptdeploy builderfy developer
example: ptdeploy builderfy developer
--yes
--guess (optional)
--project-description="A description for the project"
--github-url="http://www.github.com/phpengine/ptdeploy"
--source-branch-spec="origin/master" # guess will assume origin/master
--source-scm-url="/var/www/application" # guess will assume the current directory
--days-to-keep="10" # guess will assume -1 (to ignore this value)
--num-to-keep="100" # guess will assume 15
--autopilot-install="/path/to/installer/autopilot" # guess will assume "build/config/ptdeploy/autopilots/autopilot-dev-
jenkins-install.php"
--autopilot-uninstall="/path/to/uninstaller/autopilot" # guess will assume "build/config/ptdeploy/autopilots/autopilot-dev-
jenkins-uninstall.php"
--target-scm-url="http://www.github.com/phpengine/ptdeploy" # guess will use your github url
--target-branch="master" # guess will default to master
- manual-staging
Create a build which will manually deploy to staging and optionally test this project.
example: ptdeploy builderfy manual-staging
- continuous-staging
Create a build which will test and automatically deploy to staging for this project, triggered by SCM Changes.
example: ptdeploy builderfy continuous-staging
- manual-production
Create a build which will manually deploy to production for this project. It deploys straight to production, so
will not test first.
example: ptdeploy builderfy manual-staging
- continuous-staging-to-production
Create a continuous build job for this project, which will automatically deploy and test SCM Changes to the
staging server, and upon successful testing will also deploy those changes to production.
example: ptdeploy builderfy continuous-staging-to-production
ptdeploy builderfy continuous --yes --jenkins-home="/var/lib/jenkins" --target-job-name="my-project-continuous" --project-
description="This is the Continuous Delivery build for My Project" --primary-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-
cd.git" --source-branch-spec="origin/master" --source-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-cd.git" --days-to-keep="-1"
--amount-to-keep="10" --autopilot-test-invoke-install-file="build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php" --
autopilot-prod-invoke-install-file="build/config/ptdeploy/autopilots/tiny-prod-invoke-code-no-dbconf.php" --error-
email="phpengine@hotmail.co.uk" --only-autopilots
also --no-autopilots to just install the build
--------------
Drupal Module:
The Drupal module extends Builderfy by providing Templates for both the build and the autopilot to execute them from
This module adds the 'drupal' action to builderfy and will let you produce autopilots for it are tailored to Drupal.
// builderfy - create templates to install build
sudo ptdeploy builderfy drupal --yes --jenkins-home="/var/lib/jenkins" --target-job-name="my-project-continuous" --project-description="This
is the Continuous Delivery build for My Project" --primary-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-cd.git" --source-branch-
spec="origin/master" --source-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-cd.git" --days-to-keep="-1" --amount-to-keep="10" --
autopilot-test-invoke-install-file="build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php" --autopilot-prod-invoke-install-
file="build/config/ptdeploy/autopilots/tiny-prod-invoke-code-no-dbconf.php" --error-email="phpengine@hotmail.co.uk" --only-autopilots
// execute the build creator - you'll be using your jenkins/build environment here
ptdeploy autopilot execute build/config/ptdeploy/builderfy/autopilots/*environment-name*-drupal-invoke-continuous.php
--------------
Joomla Module:
The Joomla module extends Builderfy by providing Templates for both the build and the autopilot to execute them from
This module adds the 'joomla' action to builderfy and will let you produce autopilots for it are tailored to Joomla.
// builderfy - create templates to install build
sudo ptdeploy builderfy joomla --yes --jenkins-home="/var/lib/jenkins" --target-job-name="my-project-continuous" --project-description="This
is the Continuous Delivery build for My Project" --primary-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-cd.git" --source-branch-
spec="origin/master" --source-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-cd.git" --days-to-keep="-1" --amount-to-keep="10" --
autopilot-test-invoke-install-file="build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php" --autopilot-prod-invoke-install-
file="build/config/ptdeploy/autopilots/tiny-prod-invoke-code-no-dbconf.php" --error-email="phpengine@hotmail.co.uk" --only-autopilots
// execute the build creator - you'll be using your jenkins/build environment here
ptdeploy autopilot execute build/config/ptdeploy/builderfy/autopilots/*environment-name*-joomla-invoke-continuous.php
--------------
Wordpress Module:
The Wordpress module extends Builderfy by providing Templates for both the build and the autopilot to execute them from
This module adds the 'wordpress' action to builderfy and will let you produce autopilots for it are tailored to Wordpress.
// builderfy - create templates to install build
sudo ptdeploy builderfy wordpress --yes --jenkins-home="/var/lib/jenkins" --target-job-name="my-project-continuous" --project-
description="This is the Continuous Delivery build for My Project" --primary-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-
cd.git" --source-branch-spec="origin/master" --source-scm-url="http://146.185.129.66:8080/git/root/first-pharaoh-cd.git" --days-to-keep="-1"
--amount-to-keep="10" --autopilot-test-invoke-install-file="build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php" --
autopilot-prod-invoke-install-file="build/config/ptdeploy/autopilots/tiny-prod-invoke-code-no-dbconf.php" --error-
email="phpengine@hotmail.co.uk" --only-autopilots
// execute the build creator - you'll be using your jenkins/build environment here
ptdeploy autopilot execute build/config/ptdeploy/builderfy/autopilots/*environment-name*-wordpress-invoke-continuous.php
------------------------------
End Help
******************************
La opción manual builderfy producción se utiliza para crear una versión que se desplegará de forma manual a la producción para este proyecto. Se despliega directamente a la producción , por lo que no pondrá a prueba primero . La orden para la producción manual se da a continuación ,
ptdeploy builderfy manual-production
La representación gráfica de la orden anterior se enumeran a continuación ,
kevellcorp:/# ptdeploy builderfy manual-production
Install Builderfy? (Y/N)
y
*******************************
* Golden Contact Computing *
* Builderfy! *
*******************************
Enter the data handling type
(0) code
(1) replication
(2) capture
0
checkWhat is your Jenkins home? Found "/var/lib/jenkins" - use this?
What is the target Job Name?
my-project-continuous
Enter a description for your project
This is the continuous delivery for my project
Enter a Primary SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter a Source Branch Spec for your project
origin/master
Enter a Source SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter the number of days to keep builds for
1
Enter the max number of builds results to keep
10
Enter the path of the autopilot prod environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the path of the autopilot prod environment invoke with DB Config install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the path of the autopilot prod environment invoke with DB Install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Enter build failure Email address. Whitespace-separated list of recipient addresses
phpengine@hotmail.co.uk
Copying Files...
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Changing Folder Permissions...
Changing Folder Owner...
Changing Folder Group...
... All done!
*******************************
Thanks for installing , visit www.gcsoftshop.co.uk for more
******************************
Success
In Builderfy
******************************
La puesta en escena continua se utiliza para crear una versión que pondrá a prueba y desplegar automáticamente a puesta en escena de este proyecto , provocada por cambios de SCM . El comando siguiente muestra cómo agregar la acción ‘ wordpress ‘ a builderfy y le permitirá producir pilotos automáticos para que se adapte a Wordpress .
ptdeploy builderfy continuous-wordpress
La representación gráfica de la orden anterior se enumeran a continuación ,
kevellcorp:/# ptdeploy builderfy continuous-wordpress
Install Builderfy? (Y/N)
y
*******************************
* Golden Contact Computing *
* Builderfy! *
*******************************
Enter the data handling type
(0) code
(1) replication
(2) capture
0
checkWhat is your Jenkins home? Found "/var/lib/jenkins" - use this?
What is the target Job Name?
my-project-continuous
Enter a description for your project
This is the Continuous Delivery build for My Project
Enter a Primary SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter a Source Branch Spec for your project
origin/master
Enter a Source SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter the number of days to keep builds for
1
Enter the max number of builds results to keep
10
Enter the path of the autopilot test environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the path of the autopilot prod environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Enter build failure Email address. Whitespace-separated list of recipient addresses
phpengine@hotmail.co.uk
Copying Files...
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Changing Folder Permissions...
Changing Folder Owner...
Changing Folder Group...
... All done!
*******************************
Thanks for installing , visit www.gcsoftshop.co.uk for more
******************************
Success
In Builderfy
******************************
La puesta en escena continua se utiliza para crear una versión que pondrá a prueba y desplegar automáticamente a puesta en escena de este proyecto , provocada por cambios de SCM . El comando siguiente muestra cómo agregar la acción ‘ drupal ‘ a builderfy y le permitirá producir pilotos automáticos para que se adapte a Drupal .
ptdeploy builderfy continuous-wordpress
La representación gráfica de la orden anterior se enumeran a continuación ,
kevellcorp:/# ptdeploy builderfy continuous-drupal
Install Builderfy? (Y/N)
y
*******************************
* Golden Contact Computing *
* Builderfy! *
*******************************
Enter the data handling type
(0) code
(1) replication
(2) capture
0
checkWhat is your Jenkins home? Found "/var/lib/jenkins" - use this?
What is the target Job Name?
my-project-continuous
Enter a description for your project
This is the Continuous Delivery build for My Project
Enter a Primary SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter a Source Branch Spec for your project
origin/master
Enter a Source SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter the number of days to keep builds for
1
Enter the max number of builds results to keep
10
Enter the path of the autopilot test environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the path of the autopilot prod environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Enter build failure Email address. Whitespace-separated list of recipient addresses
phpengine@hotmail.co.uk
Copying Files...
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Changing Folder Permissions...
Changing Folder Owner...
Changing Folder Group...
... All done!
*******************************
Thanks for installing , visit www.gcsoftshop.co.uk for more
******************************
Success
In Builderfy
******************************
La puesta en escena continua se utiliza para crear una versión que pondrá a prueba y desplegar automáticamente a puesta en escena de este proyecto , provocada por cambios de SCM . El comando siguiente muestra cómo agregar la acción ‘ joomla ‘ a builderfy y le permitirá producir pilotos automáticos para que se adapte a joomla .
ptdeploy builderfy continuous-joomla
La representación gráfica de la orden anterior se enumeran a continuación ,
kevell@corp:/# ptdeploy builderfy continuous-joomla
Install Builderfy? (Y/N)
y
*******************************
* Golden Contact Computing *
* Builderfy! *
*******************************
Enter the data handling type
(0) code
(1) replication
(2) capture
0
checkWhat is your Jenkins home? Found "/var/lib/jenkins" - use this?
What is the target Job Name?
my-project-continuous
Enter a description for your project
This is the Continuous Delivery build for My Project
Enter a Primary SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter a Source Branch Spec for your project
origin/master
Enter a Source SCM URL for your project
http://146.185.129.66:8080/git/root/first-pharaoh-cd.git
Enter the number of days to keep builds for
1
Enter the max number of builds results to keep
10
Enter the path of the autopilot test environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the path of the autopilot prod environment invoke install file (Relative to project root)
build/config/ptdeploy/autopilots/tiny-staging-invoke-code-no-dbconf.php
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Enter build failure Email address. Whitespace-separated list of recipient addresses
phpengine@hotmail.co.uk
Copying Files...
Enter the data handling type
(0) code
(1) replication
(2) capture
0
Changing Folder Permissions...
Changing Folder Owner...
Changing Folder Group...
... All done!
*******************************
Thanks for installing , visit www.gcsoftshop.co.uk for more
******************************
Success
In Builderfy
******************************
Hay dos parámetros alternativos pueden ser utilizados ,
Builderfy, builderfy