Forum Forum o telefonach Nec Strona Główna Forum o telefonach Nec
Na forum znajdziesz wszelkie informacje na temat telefonów nec
 
 POMOCPOMOC   FAQFAQ   SzukajSzukaj   UżytkownicyUżytkownicy   GrupyGrupy   RejestracjaRejestracja 
 ProfilProfil   Zaloguj się, by sprawdzić wiadomościZaloguj się, by sprawdzić wiadomości   ZalogujZaloguj 

Correct way of checkout and build from a branch

 
Napisz nowy temat   Odpowiedz do tematu    Forum Forum o telefonach Nec Strona Główna -> Aplikacje java
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
juliediane
Expert


Dołączył: 23 Paź 2021
Posty: 132

PostWysłany: Czw Cze 23, 2022 23:23    Temat postu: Correct way of checkout and build from a branch Odpowiedz z cytatem

My team use a simple model with Git.

Master branch is the latest development and is considered as unstable.
For RC (ReleaseCandidate) we make a new branch for every release and use the version as branchname. Like “2018.09”.

So the buildscript checkout and build master every morning.
Then on demand it can also build the named RC.

The git part of buildscript look like this:

git clean -fd // Git generic action to remove generated files etc
git fetch // Git fetch action with tags and force option checked
git checkout -f %BranchName% // Git generic action to choose branch
git reset --hard origin/%BranchName% // Git generic action to reset index
git pull %Repository% // Git generic ation to pull repository
git rebase --skip // Git generic action that rebase

If the last rebase action is fails it is ignored.
Updates were rejected because the tip of your current branch is behind
Now the problem is that RC builds can get commits from master branch.
I also had a feeling that the this sequence of actions can be simplified.

It should just reset everything and get the latest from specified branch to working dir.
Any advice how to improve/fix this ?[/url]
Powrót do góry
Ogląda profil użytkownika Wyślij prywatną wiadomość
Reklama






Wysłany: Czw Cze 23, 2022 23:23    Temat postu:

Powrót do góry
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum Forum o telefonach Nec Strona Główna -> Aplikacje java Wszystkie czasy w strefie CET (Europa)
Strona 1 z 1
Skocz do:  
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach

Forum o telefonach Nec  

To forum działa w systemie phorum.pl
Masz pomysł na forum? Załóż forum za darmo!
Forum narusza regulamin? Powiadom nas o tym!
Powered by Active24, phpBB © phpBB Group