git-ftp is ignoring artifacts from Bitbucket pipelines build
Open
Nobody has claimed this yet.
ci
- Dominant language
- Shell
- Stars
- 5.6k
- Forks
- 694
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am doing Bitbucket pipelines build with following settings:
pipelines:
default:
- step:
name: Build and test JS.
image: node:8.9.3
script:
- npm install
- npm test
- npm run-script build
- step:
name: Build and test PHP.
image: php:7-fpm
script:
- echo "Here will be the Composer build and PHPUnit tests."
branches:
production:
- step:
name: Build and test JS.
image: node:8.9.3
script:
- npm install
- npm test
- npm run-script build
- ls
- ls public_html
artifacts:
- public_html/**
- step:
name: Build and test PHP.
image: php:7-fpm
script:
- echo "Here will be the Composer build and PHPUnit tests."
- ls
- ls public_html
artifacts:
- public_html/**
- step:
name: Deploy to FTP.
image: samueldebruyn/debian-git
script:
- apt-get update
- apt-get -qq install git-ftp
- ls
- ls public_html
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST
ls public_html shows me js, css files and index.html after webpack build, but that files are ignored by git-ftp even when I use .git-ftp-include.
How can I do it? Please for help.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Bitbucket Pipelines configuration and the .git-ftp-include behavior, then inspect the files shown in public_html before running git ftp push. Determine why the generated artifacts are excluded and establish a reproducible explanation or fix for deployment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100