#446  get brief build log
Closed
fly opened 3 weeks ago
21:04:13hint: Using 'master' as the name for the initial branch. This default branch name
21:04:13hint: is subject to change. To configure the initial branch name to use in all
21:04:13hint: of your new repositories, which will suppress this warning, call:
21:04:13hint: 
21:04:13hint: 	git config --global init.defaultBranch <name>
21:04:13hint: 
21:04:13hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
21:04:13hint: 'development'. The just-created branch can be renamed via this command:
21:04:13hint: 
21:04:13hint: 	git branch -m <name>

How can I clean these hint?

Robin Shen commented 3 weeks ago

Can you please let me know how to reproduce this?

fly commented 3 weeks ago

server infomation

$ lsb_realease -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.5.1804 (Core) 
Release:	7.5.1804
Codename:	Core
$ git --version
git version 2.30.1

onedev version:4.4.2

my.py

print('Hello World!(python)');

my.yml

version: 6
jobs:
- name: online-compile
  steps:
  - !CheckoutStep
    name: checkout
    cloneCredential: !DefaultCredential {}
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  - !CommandStep
    name: run
    image: python
    commands:
    - python my.py
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  retryCondition: never
  maxRetries: 3
  retryDelay: 30
  cpuRequirement: 250m
  memoryRequirement: 128m
  timeout: 3600

whole log

23:57:32Executing job (executor: auto-discovered, network: auto-discovered-online-compile-47-0)...
23:57:32Allocating job caches...
23:57:33Copying job dependencies...
23:57:33Running step "checkout"...
23:57:33Checking out code...
23:57:33hint: Using 'master' as the name for the initial branch. This default branch name
23:57:33hint: is subject to change. To configure the initial branch name to use in all
23:57:33hint: of your new repositories, which will suppress this warning, call:
23:57:33hint: 
23:57:33hint: 	git config --global init.defaultBranch <name>
23:57:33hint: 
23:57:33hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
23:57:33hint: 'development'. The just-created branch can be renamed via this command:
23:57:33hint: 
23:57:33hint: 	git branch -m <name>
23:57:34Running step "run"...
23:57:35Hello World!(python)
23:57:35Reporting job caches...
Robin Shen changed state to 'Closed' 3 weeks ago
Previous Value Current Value
Open
Closed

This issue was fixed in build #2011 (5.3.3)

issue 1 of 1
Type
Discussion
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
issue onedev/server#446
Please wait...
Page is in error, reload to recover