rocketeer
rocketeer copied to clipboard
/usr/bin/file instead of /usr/bin/git
After the first run of deploy, the deployment command is transformed from /usr/bin/file instead of /usr/bin/git. This is a bit confusing since the configuration is the same. Here is the output via -vvv:
├─ CreateRelease/Clone (Clones a fresh instance of the repository by VCS)
│ │ │ | ├─ Cloning repository in "/var/www/myserver/releases/20170727203053"
│ │ │ | ├─ $ bash --login -c 'echo ROCKETEER'
│ │ │ | ├─ $ /usr/bin/file clone "[email protected]:namespace/myrepo.git" "/var/www/myserver/releases/20170727203053" --branch="master"
│ │ │ | ├─ [root@production] /usr/bin/file: unrecognized option '--branch=master'
│ │ │ | ├─ [root@production] Usage: file [-bdFqikRlNnprsvyZ0] [--apple] [--extension] [--mime-encoding] [--mime-type]
│ │ │ | ├─ [root@production] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
│ │ │ | ├─ [root@production] file -C [-m magicfiles]
│ │ │ | ├─ [root@production] file [--help]
│ │ │ | ├─ An error occured: "Unable to clone the repository", while running:
│ │ │ | ├─ /usr/bin/file: unrecognized option '--branch=master'
│ │ │ | ├─ Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type]
│ │ │ | ├─ [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
│ │ │ | ├─ file -C [-m magicfiles]
│ │ │ | ├─ file [--help]
Here is the VSC configuration output via debug:config :
"vcs" => array:7 [
"vcs" => "git"
"repository" => "[email protected]:namespace/myrepo.git"
"username" => "git"
"password" => null
"branch" => "master"
"shallow" => false
"submodules" => true
]
Any suggestions or a point in the right direction would be helpful.
what the hell
I've had to use the Dev branch due to conflicts in dependencies with codeception. In the meantime, I'm going to put the deployment in its own folder to use a release version of rocketeer.
@Anahkiasen maybe it's time to use versions in labels? And it will be good to update github template for pull requests.
I'm getting the same issue with the stable version as well. Not sure where I'm going wrong. I'm using a GitLab-Runner to fire the command. I even tried to run it manually there. Just not sure where the /usr/bin/file is coming from. Thanks guys.