mirror of
https://tvoygit.ru/Djam/artmigrator.git
synced 2025-02-23 10:22:45 +00:00
update
This commit is contained in:
parent
662c68cfaa
commit
7092e4ba5d
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ func (a *App) Run() error {
|
||||||
log.Printf("Некорректный формат файла %s", parts[3])
|
log.Printf("Некорректный формат файла %s", parts[3])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if strings.HasSuffix(artifact, ".md5") || strings.HasSuffix(artifact, ".sha1") || strings.HasSuffix(artifact, ".sha256") || strings.HasSuffix(artifact, ".sha512") {
|
if fileParts[len(fileParts)-1] == "md5" || fileParts[len(fileParts)-1] == "sha1" || fileParts[len(fileParts)-1] == "sha256" || fileParts[len(fileParts)-1] == "sha512" {
|
||||||
log.Printf("Пропускаем файл %s, так как он имеет расширение .md5, .sha1, .sha256 или .sha512", artifact)
|
log.Printf("Пропускаем файл %s, так как он имеет расширение .md5, .sha1, .sha256 или .sha512", artifact)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,7 @@ func (c *Client) UploadArtifact(groupId, artifactId, version, packaging string,
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
if resp.StatusCode != http.StatusCreated {
|
if resp.StatusCode != http.StatusCreated {
|
||||||
log.Printf("Ошибка загрузки артефакта: %s", resp.Status)
|
log.Printf("Ошибка загрузки артеф<EFBFBD><EFBFBD>кта: %s", resp.Status)
|
||||||
return fmt.Errorf("failed to upload artifact: %s", resp.Status)
|
return fmt.Errorf("failed to upload artifact: %s", resp.Status)
|
||||||
}
|
}
|
||||||
log.Printf("Артефакт %s-%s-%s.%s загружен в репозиторий Gitea", groupId, artifactId, version, packaging)
|
log.Printf("Артефакт %s-%s-%s.%s загружен в репозиторий Gitea", groupId, artifactId, version, packaging)
|
||||||
|
|
Loading…
Add table
Reference in a new issue