{"id":39760,"date":"2018-06-29T08:06:44","date_gmt":"2018-06-29T13:06:44","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=support&#038;p=39760"},"modified":"2025-07-28T11:05:34","modified_gmt":"2025-07-28T17:05:34","slug":"deploying-code-with-bitbucket-pipelines-wp-engine","status":"publish","type":"support","link":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/","title":{"rendered":"Bitbucket Pipe for WP Engine Site Deployments"},"content":{"rendered":"\n<p>If you need to deploy WordPress\u00ae code from a Bitbucket repo to WP Engine, use our <a href=\"https:\/\/bitbucket.org\/wpengine\/wpe-site-deploy\/src\/main\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine Bitbucket Pipe<\/a>.<sup><a href=\"#legal-disclaimer\">1<\/a><\/sup> Deploy a full site directory or any sub-directory with the SRC_PATH and REMOTE_PATH options. Other options include performing a PHP Lint, custom rsync flags, or clearing cache.<\/p>\n\n\n\n<p>This configuration uses WP Engine\u2019s SSH Gateway, instead of WP Engine\u2019s GitPush feature.<\/p>\n\n\n\n<p><a href=\"https:\/\/bitbucket.org\/wpengine\/wpe-site-deploy\/src\/main\/\">View the full guide on Bitbucket here.<\/a><\/p>\n\n\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Setup Instructions<\/h2>\n\n\n\n<p>Configuration requires three main steps: Save a private SSH Key to Bitbucket, save a public SSH key to WP Engine, and set up <code>bitbucket-pipelines.yml<\/code> to orchestrate the deploy.<\/p>\n\n\n\n<p><strong>STEP 1: SSH PRIVATE KEY SETUP IN BITBUCKET<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/wpengine.com\/support\/ssh-keys-for-shell-access\/#Generate_New_SSH_Key\">Generate a new SSH key pair<\/a>, if you have not already done so.<\/li>\n\n\n\n<li>Add the base64 <em>SSH Private Key<\/em> to your <a href=\"https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/use-multiple-ssh-keys-in-your-pipeline\/#Add-the-key-as-a-secure-variable\" target=\"_blank\" rel=\"noreferrer noopener\">Repository Variables<\/a>&nbsp; or your <a href=\"https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/variables-and-secrets\/#Workspace-variables\">Workspace variables<\/a>.\n<ul class=\"wp-block-list\">\n<li>Note: Bitbucket requires base64 encoding to store keys. <a href=\"https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/use-multiple-ssh-keys-in-your-pipeline\/\" target=\"_blank\" rel=\"noreferrer noopener\">This guide<\/a> will outline how to copy in the proper format<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Save the new secret \u201cName\u201d as <code>WPE_SSHG_KEY_PRIVATE<\/code><\/li>\n<\/ol>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<div style=\"color:#32373c;background-color:#00d1b2\" class=\"wp-block-genesis-blocks-gb-notice gb-font-size-18 gb-block-notice\" data-id=\"ad1157\"><div class=\"gb-notice-title\" style=\"color:#fff\"><p>NOTES<\/p><\/div><div class=\"gb-notice-text\" style=\"border-color:#00d1b2\">\n<ul class=\"wp-block-list\">\n<li>If using a Bitbucket Workspace, adding the SSH key to the&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20240227212925\/https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/variables-and-secrets\/#Workspace-variables\" target=\"_blank\" rel=\"noreferrer noopener\">Workspace Variables<\/a><strong>&nbsp;<\/strong>will allow all repos to reference the same SSH key for deploys. The SSH Key also grants access to all installs made available to its WP Engine User. One key can then effectively be used to deploy all projects to their respective sites on WP Engine.<\/li>\n\n\n\n<li><a href=\"https:\/\/wpengine.com\/support\/ssh-gateway\/#SHA1\">SHA1 has been deprecated<\/a>. When generating SSH keys for continuous integration, use ED25519 formatting instead.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<p><strong>STEP 2: SSH PUBLIC KEY SETUP IN WP ENGINE<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add the <em>SSH Public Key<\/em> to your WP Engine SSH Gateway Key settings. <a href=\"https:\/\/wpengine.com\/support\/ssh-gateway\/#Add_SSH_Key\">This Guide will show you how.<\/a><\/li>\n<\/ol>\n\n\n\n<div style=\"color:#32373c;background-color:#00d1b2\" class=\"wp-block-genesis-blocks-gb-notice gb-font-size-18 gb-block-notice\" data-id=\"10de4b\"><div class=\"gb-notice-title\" style=\"color:#fff\"><p>NOTE<\/p><\/div><div class=\"gb-notice-text\" style=\"border-color:#00d1b2\">\n<p>This pipe DOES NOT utilize WP Engine GitPush or the GitPush SSH keys&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20240227212925\/https:\/\/wpengine.com\/support\/git\/#Add_SSH_Key_to_User_Portal\">found here.<\/a><\/p>\n<\/div><\/div>\n\n\n\n<p><strong>STEP 3: YML SETUP<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a <code>bitbucket-pipelines.yml<\/code> file in the root of your repo locally. Copy and paste the configuration from below, replacing the value under <code>branches:<\/code> and the value for <code>WPE_ENV:<\/code><\/li>\n\n\n\n<li>To configure deploy for another branch, the <code>bitbucket-pipelines.yml<\/code> can be extended with an additional workflow. <a href=\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#Example_Bitbucket_Pipeline_Workflow\">See below example for details<\/a>.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>This provides the ability to perform a different workflow for different branches\/environments. Consult \u201c<a href=\"https:\/\/confluence.atlassian.com\/bitbucket\/branch-workflows-in-bitbucket-pipelines-856697482.html\">Bitbucket Branch Workflows<\/a>\u201d&nbsp; for available options.<\/p>\n\n\n\n<p><strong>STEP 4: GIT PUSH YOUR SITE TO THE BITBUCKET REPO<\/strong><\/p>\n\n\n\n<p>The action will do the rest!<\/p>\n\n\n\n<p>View your pipelines progress and logs by navigating to the \u201c<a href=\"https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/view-your-pipeline\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pipelines<\/a>\u201d tab in your repository.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Example Bitbucket Pipeline Workflow<\/h2>\n\n\n\n<p>Copy and paste a configuration from below, replacing the value under&nbsp;<code>branches:<\/code>&nbsp;and the value for&nbsp;<code>WPE_ENV:<\/code><\/p>\n\n\n\n<p><strong>Simple bitbucket-pipelines.yml:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pipelines:\n&nbsp;&nbsp;branches:\n&nbsp;&nbsp;&nbsp;&nbsp;main:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- step:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: Deploy to Production\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;script:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- pipe: wpengine\/wpe-site-deploy:v1\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPE_SSHG_KEY_PRIVATE: $WPE_SSHG_KEY_PRIVATE\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPE_ENV: '&lt;sitename&gt;'<\/code><\/pre>\n\n\n\n<p><strong>Extended Sample bitbucket-pipelines.yml:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pipelines:\n&nbsp;&nbsp;branches:\n&nbsp;&nbsp;&nbsp;&nbsp;main:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- step:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: Deploy to Production\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;script:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- pipe: wpengine\/wpe-site-deploy:v1\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPE_SSHG_KEY_PRIVATE: $WPE_SSHG_KEY_PRIVATE\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPE_ENV: '&lt;sitename&gt;'\n&nbsp;&nbsp;&nbsp;&nbsp;staging:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- step:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: Deploy to Staging\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deployment: staging\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;script:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- pipe: wpengine\/wpe-site-deploy:v1\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables:\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPE_SSHG_KEY_PRIVATE: $WPE_SSHG_KEY_PRIVATE\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPE_ENV: '&lt;sitename&gt;'<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Environment Variables and Secrets<\/h2>\n\n\n\n<p><strong>Required<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Name<\/th><th>Type<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>WPE_SSHG_KEY_PRIVATE<\/code><\/td><td>secrets<\/td><td>Base64 encoded Private SSH Key for the SSH Gateway and deployment. See below for SSH key usage.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Deploy Options<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Name<\/th><th>Type<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>WPE_ENV<\/code><\/td><td>string<\/td><td>Insert the name of the WP Engine environment you want to deploy to.<\/td><\/tr><tr><td><code>SRC_PATH<\/code><\/td><td>string<\/td><td>Optional path to specify a directory within the repo to deploy from. Ex. <code>wp-content\/themes\/genesis-child-theme\/<\/code> Defaults to root of repo filesystem as source.<\/td><\/tr><tr><td><code>REMOTE_PATH<\/code><\/td><td>string<\/td><td>Optional path to specify a directory destination to deploy to. Ex. <code>wp-content\/themes\/genesis-child-theme\/<\/code> Defaults to WordPress root directory on WP Engine.<\/td><\/tr><tr><td><code>PHP_LINT<\/code><\/td><td>bool<\/td><td>Set to TRUE to execute a php lint on your branch pre-deployment. Default is <code>FALSE<\/code><\/td><\/tr><tr><td><code>FLAGS<\/code><\/td><td>string<\/td><td>Set optional rsync flags such as <code>--delete<\/code> or <code>--exclude-from<\/code> This pipe defaults to a non-destructive deploy using the flags <code>-azvr --inplace --exclude=\".*\"<\/code><br><em>Caution: Setting custom rsync flags replaces the default flags provided by this pipe. Consider also adding the <code>-azvr<\/code> flags as needed.<\/em><br><em><code>-a<\/code> preserves symbolic links, timestamps, user permissions and ownership.<\/em><br><em><code>-z<\/code> is for compression<\/em><br><em><code>-v<\/code> is for verbose output<\/em><br><em><code>-r<\/code> is for recursive directory scanning<\/em><\/td><\/tr><tr><td><code>SCRIPT<\/code><\/td><td>string<\/td><td>Remote bash file to execute post-deploy. This can include WP_CLI commands for example. Path is relative to the WP root and file executes on remote. This file can be included in your repo, or be a persistent file that lives on your server.<\/td><\/tr><tr><td><code>CACHE_CLEAR<\/code><\/td><td>bool<\/td><td>Optionally clear page and CDN cache post deploy. This takes a few seconds. Default is <code>TRUE<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"color:#32373c;background-color:#00d1b2\" class=\"wp-block-genesis-blocks-gb-notice gb-font-size-18 gb-block-notice\" data-id=\"10de4b\"><div class=\"gb-notice-title\" style=\"color:#fff\"><p>NOTE<\/p><\/div><div class=\"gb-notice-text\" style=\"border-color:#00d1b2\">\n<p>As this script does not restrict files or directories that can be deployed, it is recommended to leverage one of&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20240227212925\/https:\/\/wpengine.com\/support\/git\/#Add_gitignore\">WP Engine\u2019s .gitignore templates.<\/a><\/p>\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>NEXT STEP: <a href=\"https:\/\/wpengine.com\/support\/development-workflow-best-practices\/\">Check out our best practices for deploying when using version control<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites. <\/p>\n","protected":false},"featured_media":126216,"template":"","support-categories":[3,6,77],"support-tag":[118,4],"class_list":["post-39760","support","type-support","status-publish","has-post-thumbnail","hentry","support-categories-development","support-categories-platform","support-categories-third-party","support-tag-continuous-integration","support-tag-git"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bitbucket Pipe for WP Engine Site Deployments - Support Center<\/title>\n<meta name=\"description\" content=\"Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bitbucket Pipe for WP Engine Site Deployments - Support Center\" \/>\n<meta property=\"og:description\" content=\"Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/\" \/>\n<meta property=\"og:site_name\" content=\"Support Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-28T17:05:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/\",\"url\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/\",\"name\":\"Bitbucket Pipe for WP Engine Site Deployments - Support Center\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png\",\"datePublished\":\"2018-06-29T13:06:44+00:00\",\"dateModified\":\"2025-07-28T17:05:34+00:00\",\"description\":\"Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#primaryimage\",\"url\":\"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png\",\"contentUrl\":\"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png\",\"width\":1200,\"height\":630,\"caption\":\"WP Engine\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support Posts\",\"item\":\"https:\/\/wpengine.com\/support\/support\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bitbucket Pipe for WP Engine Site Deployments\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/support\/#website\",\"url\":\"https:\/\/wpengine.com\/support\/\",\"name\":\"Support Center\",\"description\":\"WP Engine&#039;s Support Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bitbucket Pipe for WP Engine Site Deployments - Support Center","description":"Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/","og_locale":"en_US","og_type":"article","og_title":"Bitbucket Pipe for WP Engine Site Deployments - Support Center","og_description":"Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites.","og_url":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/","og_site_name":"Support Center","article_modified_time":"2025-07-28T17:05:34+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/","url":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/","name":"Bitbucket Pipe for WP Engine Site Deployments - Support Center","isPartOf":{"@id":"https:\/\/wpengine.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#primaryimage"},"image":{"@id":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#primaryimage"},"thumbnailUrl":"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","datePublished":"2018-06-29T13:06:44+00:00","dateModified":"2025-07-28T17:05:34+00:00","description":"Learn how to configure Bitbucket Pipelines to deploy code from your local machine, build it with Bitbucket, and deploy to your WP Engine websites.","breadcrumb":{"@id":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#primaryimage","url":"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","contentUrl":"https:\/\/wpengine.com\/support\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","width":1200,"height":630,"caption":"WP Engine"},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/support\/deploying-code-with-bitbucket-pipelines-wp-engine\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/support\/"},{"@type":"ListItem","position":2,"name":"Support Posts","item":"https:\/\/wpengine.com\/support\/support\/"},{"@type":"ListItem","position":3,"name":"Bitbucket Pipe for WP Engine Site Deployments"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/support\/#website","url":"https:\/\/wpengine.com\/support\/","name":"Support Center","description":"WP Engine&#039;s Support Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/support\/39760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/types\/support"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/media\/126216"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/media?parent=39760"}],"wp:term":[{"taxonomy":"support-categories","embeddable":true,"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/support-categories?post=39760"},{"taxonomy":"support-tag","embeddable":true,"href":"https:\/\/wpengine.com\/support\/wp-json\/wp\/v2\/support-tag?post=39760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}