lvivier / step-gh-pages

deploy github pages with wercker
37 stars 35 forks source link

Failing for bitbucket #15

Open vvasuki opened 5 years ago

vvasuki commented 5 years ago

I tried using a downstream fork https://github.com/gsserge/step-git-push , but I could not report the issue there or figure out a way to contact @gsserge , hece reporting it here.

Command:

    - gsserge/git-push:
        host: bitbucket.org
        repo: agnirahas/agnirahas.bitbucket.org
        branch: master
        basedir: build_bitbucket
        discard_history: true

Log without the debug flag:

--> Running step: git-push
using github repo "agnirahas/agnirahas.bitbucket.org"
remote URL will be git@bitbucket.org:agnirahas/agnirahas.bitbucket.org.git
Initialized Repo in /tmp/git-push
/tmp/git-push /tmp/git-push
.git
The commit will be tagged with /tmp/git-push/
--> Command cancelled due to error
--> Step failed: git-push Command cancelled due to error 8.80s

Log:

INFO[0044]     main| --> Running step: git-push                   
DEBU[0044]   events| BuildStepStarted                             
DEBU[0044]   events|   Box core.Box                               
DEBU[0044]   events|     Name string = docker.io/library/debian:latest 
DEBU[0044]   events|     ShortName string = debian                
DEBU[0044]   events|     client *dockerlocal.DockerClient = <not exported> 
DEBU[0044]   events|     cmd string = <not exported>              
DEBU[0044]   events|     config *core.BoxConfig = <not exported>  
DEBU[0044]   events|     container *docker.Container = <not exported> 
DEBU[0044]   events|     dockerEnvVar []string = <not exported>   
DEBU[0044]   events|     dockerOptions *dockerlocal.Options = <not exported> 
DEBU[0044]   events|     entrypoint string = <not exported>       
DEBU[0044]   events|     image *docker.Image = <not exported>     
DEBU[0044]   events|     images []*docker.Image = <not exported>  
DEBU[0044]   events|     logger *util.LogEntry = <not exported>   
DEBU[0044]   events|     networkDisabled bool = <not exported>    
DEBU[0044]   events|     options *core.PipelineOptions = <not exported> 
DEBU[0044]   events|     repository string = <not exported>       
DEBU[0044]   events|     services []core.ServiceBox = <not exported> 
DEBU[0044]   events|     tag string = <not exported>              
DEBU[0044]   events|     volumes []string = <not exported>        
DEBU[0044]   events|   Build core.Pipeline = &{0xc4201bcb60}      
DEBU[0044]   events|   Order int = 7                              
DEBU[0044]   events|   Step core.Step                             
DEBU[0044]   events|     ExternalStep *core.ExternalStep = &{0xc42025e480  map[repo:agnirahas/agnirahas.bitbucket.org branch:master basedir:build_bitbucket discard_history:true host:bitbucket.org] 0xc4200ac420 0xc42000c0b0 0xc4200e0900} 
DEBU[0044]   events|     dockerOptions *dockerlocal.Options = <not exported> 
DEBU[0044]   events|     logger *util.LogEntry = <not exported>   
DEBU[0044]   events|     options *core.PipelineOptions = <not exported> 
DEBU[0044]   runner| Step Environment                             
DEBU[0044]   runner|   WERCKER_STEP_ROOT /pipeline/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041 
DEBU[0044]   runner|   WERCKER_STEP_ID git-push-35e11e29-cf1c-463a-9321-de1a7a36e041 
DEBU[0044]   runner|   WERCKER_STEP_OWNER gsserge                 
DEBU[0044]   runner|   WERCKER_STEP_NAME git-push                 
DEBU[0044]   runner|   WERCKER_REPORT_NUMBERS_FILE /report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/numbers.ini 
DEBU[0044]   runner|   WERCKER_REPORT_MESSAGE_FILE /report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/message.txt 
DEBU[0044]   runner|   WERCKER_REPORT_ARTIFACTS_DIR /report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/artifacts 
DEBU[0044]   runner|   WERCKER_GIT_PUSH_BASEDIR build_bitbucket   
DEBU[0044]   runner|   WERCKER_GIT_PUSH_DISCARD_HISTORY true      
DEBU[0044]   runner|   WERCKER_GIT_PUSH_HOST bitbucket.org        
DEBU[0044]   runner|   WERCKER_GIT_PUSH_REPO agnirahas/agnirahas.bitbucket.org 
DEBU[0044]   runner|   WERCKER_GIT_PUSH_BRANCH master             
INFO[0044]  literal| [ ]  stdin "mkdir -p \"/report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/artifacts\"\n" 
INFO[0044]  literal| [ ]  stdin "echo d83a028e-b78c-4a9d-960d-c16cf8a3bc36 $?\n" 
INFO[0044]  literal| [ ] stdout "d83a028e-b78c-4a9d-960d-c16cf8a3bc36 0\n" 
INFO[0044]  literal| [ ]  stdin "set +e\n"                        
INFO[0044]  literal| [ ]  stdin "echo d7e9aafc-334c-453f-bb5a-d7d178092750 $?\n" 
INFO[0044]  literal| [ ] stdout "d7e9aafc-334c-453f-bb5a-d7d178092750 0\n" 
INFO[0044]  literal| [ ]  stdin "cp -r \"/mnt/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041\" \"/pipeline/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041\"\n" 
INFO[0044]  literal| [ ]  stdin "echo d046150b-5329-462b-abc8-ae5a09943cc2 $?\n" 
INFO[0044]  literal| [ ] stdout "d046150b-5329-462b-abc8-ae5a09943cc2 0\n" 
INFO[0044]  literal| [ ]  stdin "cd $WERCKER_SOURCE_DIR\n"        
INFO[0044]  literal| [ ]  stdin "echo b9ca371a-aadd-4c27-833f-11dd79e910e5 $?\n" 
INFO[0044]  literal| [ ] stdout "b9ca371a-aadd-4c27-833f-11dd79e910e5 0\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_STEP_ROOT=\"/pipeline/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_STEP_ID=\"git-push-35e11e29-cf1c-463a-9321-de1a7a36e041\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_STEP_OWNER=\"gsserge\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_STEP_NAME=\"git-push\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_REPORT_NUMBERS_FILE=\"/report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/numbers.ini\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_REPORT_MESSAGE_FILE=\"/report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/message.txt\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_REPORT_ARTIFACTS_DIR=\"/report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/artifacts\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_GIT_PUSH_BASEDIR=\"build_bitbucket\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_GIT_PUSH_DISCARD_HISTORY=\"true\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_GIT_PUSH_HOST=\"bitbucket.org\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_GIT_PUSH_REPO=\"agnirahas/agnirahas.bitbucket.org\"\n" 
INFO[0044]  literal| [x]  stdin "export WERCKER_GIT_PUSH_BRANCH=\"master\"\n" 
INFO[0044]  literal| [ ]  stdin "echo 4f775552-f8b0-4998-873d-286e80bb1181 $?\n" 
INFO[0044]  literal| [ ] stdout "4f775552-f8b0-4998-873d-286e80bb1181 0\n" 
INFO[0044]  literal| [x]  stdin "source \"/pipeline/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/run.sh\" < /dev/null\n" 
INFO[0044]  literal| [ ]  stdin "echo 970bdb3b-4100-4ab3-8dbb-30ce6b09cee8 $?\n" 
INFO[0044]  literal| [x] stdout "\x1b[37m\x1b[1musing github repo \"agnirahas/agnirahas.bitbucket.org\"\x1b[m\n" 
INFO[0044]  literal| [x] stdout "\x1b[37m\x1b[1mremote URL will be git@bitbucket.org:agnirahas/agnirahas.bitbucket.org.git\x1b[m\n" 
INFO[0045]  literal| [x] stdout "\x1b[37m\x1b[1mInitialized Repo in /tmp/git-push\x1b[m\n" 
INFO[0045]  literal| [x] stdout "/tmp/git-push /tmp/git-push\n"   
INFO[0045]  literal| [x] stdout ".git\n"                          
INFO[0045]  literal| [x] stdout "\x1b[37m\x1b[1mThe commit will be tagged with /tmp/git-push/\x1b[m\n" 
DEBU[0051] dockertr| Container finished with status code: 128 e124ff8e4500cf88dbecbe1e8963c1bceb299c9d943a4c8145cf2b0992d5fbbd 
DEBU[0051] dockerst| Probably expected error:API error (404): {"message":"Could not find the file /report/git-push-35e11e29-cf1c-463a-9321-de1a7a36e041/message.txt in container e124ff8e4500cf88dbecbe1e8963c1bceb299c9d943a4c8145cf2b0992d5fbbd"}

DEBU[0051]   events| BuildStepFinished                            
DEBU[0051]   events|   ArtifactURL string =                       
DEBU[0051]   events|   Box core.Box                               
DEBU[0051]   events|     Name string = docker.io/library/debian:latest 
DEBU[0051]   events|     ShortName string = debian                
DEBU[0051]   events|     client *dockerlocal.DockerClient = <not exported> 
DEBU[0051]   events|     cmd string = <not exported>              
DEBU[0051]   events|     config *core.BoxConfig = <not exported>  
DEBU[0051]   events|     container *docker.Container = <not exported> 
DEBU[0051]   events|     dockerEnvVar []string = <not exported>   
DEBU[0051]   events|     dockerOptions *dockerlocal.Options = <not exported> 
DEBU[0051]   events|     entrypoint string = <not exported>       
DEBU[0051]   events|     image *docker.Image = <not exported>     
DEBU[0051]   events|     images []*docker.Image = <not exported>  
DEBU[0051]   events|     logger *util.LogEntry = <not exported>   
DEBU[0051]   events|     networkDisabled bool = <not exported>    
DEBU[0051]   events|     options *core.PipelineOptions = <not exported> 
DEBU[0051]   events|     repository string = <not exported>       
DEBU[0051]   events|     services []core.ServiceBox = <not exported> 
DEBU[0051]   events|     tag string = <not exported>              
DEBU[0051]   events|     volumes []string = <not exported>        
DEBU[0051]   events|   Build core.Pipeline = &{0xc4201bcb60}      
DEBU[0051]   events|   Message string = Command cancelled due to error 
DEBU[0051]   events|   Order int = 7                              
DEBU[0051]   events|   PackageURL string =                        
DEBU[0051]   events|   Step core.Step                             
DEBU[0051]   events|     ExternalStep *core.ExternalStep = &{0xc42025e480  map[host:bitbucket.org repo:agnirahas/agnirahas.bitbucket.org branch:master basedir:build_bitbucket discard_history:true] 0xc4200ac420 0xc42000c0b0 0xc4200e0900} 
DEBU[0051]   events|     dockerOptions *dockerlocal.Options = <not exported> 
DEBU[0051]   events|     logger *util.LogEntry = <not exported>   
DEBU[0051]   events|     options *core.PipelineOptions = <not exported> 
DEBU[0051]   events|   Successful bool = false                    
DEBU[0051]   events|   WerckerYamlContents string =               
INFO[0051]     main| --> Command cancelled due to error           
INFO[0051]     main| --> Step failed: git-push Command cancelled due to error 6.96s 
DEBU[0051]   events| BuildFinished                                
DEBU[0051]   events|   Box core.Box                               
DEBU[0051]   events|     Name string = docker.io/library/debian:latest 
DEBU[0051]   events|     ShortName string = debian                
DEBU[0051]   events|     client *dockerlocal.DockerClient = <not exported> 
DEBU[0051]   events|     cmd string = <not exported>              
DEBU[0051]   events|     config *core.BoxConfig = <not exported>  
DEBU[0051]   events|     container *docker.Container = <not exported> 
DEBU[0051]   events|     dockerEnvVar []string = <not exported>   
DEBU[0051]   events|     dockerOptions *dockerlocal.Options = <not exported> 
DEBU[0051]   events|     entrypoint string = <not exported>       
DEBU[0051]   events|     image *docker.Image = <not exported>     
DEBU[0051]   events|     images []*docker.Image = <not exported>  
DEBU[0051]   events|     logger *util.LogEntry = <not exported>   
DEBU[0051]   events|     networkDisabled bool = <not exported>    
DEBU[0051]   events|     options *core.PipelineOptions = <not exported> 
DEBU[0051]   events|     repository string = <not exported>       
DEBU[0051]   events|     services []core.ServiceBox = <not exported> 
DEBU[0051]   events|     tag string = <not exported>              
DEBU[0051]   events|     volumes []string = <not exported>        
DEBU[0051]   events|   Result string = failed                     
INFO[0052]     main| --> Exported Cache: 0.92s                    
INFO[0052]     main| --> Pipeline failed: 52.77s                  
DEBU[0052]      box| Stopping container e124ff8e4500cf88dbecbe1e8963c1bceb299c9d943a4c8145cf2b0992d5fbbd 
WARN[0052]      box| Box container has already stopped.           
DEBU[0052]      box| Removing container: e124ff8e4500cf88dbecbe1e8963c1bceb299c9d943a4c8145cf2b0992d5fbbd 
DEBU[0053]      box| Removing docker network  w-uHwCBONlWn        
DEBU[0053]   events| FullPipelineFinished                         
DEBU[0053]   events|   AfterStepSuccessful bool = false           
DEBU[0053]   events|   MainSuccessful bool = false                
DEBU[0053]   events|   RanAfterSteps bool = false                 
FATA[0053]      cli| Step failed: git-push        

Could you help me figure this out?