Travel around the world

How to Create and enforce Github branch protection rules for Organization. Best Practice

git branches

We are going to enforce the Git Best Practice branch's protection rules and recommendaions for GitHub Organization repositories.

Also we will automate a proces of adding and updating teams and branch protection rules to GitHub Organization repository.

There is the same way to apply branch protection and recommendaions to private (non-organization GitHub repositories but you need to modify the automation scipts). Also some options are not available for non-organization GitHub repositories.

 

 

 

 

Read more ...

Joshua Tree National park.

Национальный парк Joshua TreeAnd once again, we make our journrey with friends, to Joshua Tree National Park

We make our way down here every year, on the last weekend of May, so that we can experience the desert heat, rock climb on real rocks, take some time away from work, and spend our time with good people. On this trip, our whole family came, along with Boris, Natasha, Yulia, Victor Zybin, Kirk + Caren, Gina + Steven, Mónica + Nuno, Brian, Maya + Steve (this is so I don't forget). 
What is Joshua Tree National Park? This is a part of the top of the Mojave Desert - a plateau resting at 1200 meters above sea level, with the temperature lower by 5-10 C, than in the lower part of Mojave Desert. 

What is the Mojave Desert. It is a small desert in North America, where many Hollywood movies were filmed. So, if you see a Hollywood movie with a desert, moon, The Martian - then it was in the Mojave Desert, since Los Angeles and Hollywood are only a one hour drive away. Top Gun was also filmed here. 

Read more ...

Isla del Sol - no way to avoid to take a money

Isla del Sol - hike trail

The island Isla del Sol located in the southern part of lake Titicaca at an elevation of 3800 meters above sea level. The island is divided in two parts – the north end the south community. We landed on the north part of the island near the village Challapampa. Challapampa bay is very big and beautiful, with clean calm blue water. There were several cafes on the beach where we had breakfast. The trail started from the beach near a small museum with ancient ceramics and bones in glass cases.

 
 

Then the surprises started. Near the museum stood a man who asked us for tickets to go on a trail, but the museum was free. We bought two tickets for 10 Soles and continued on our way. The trail went near a school, between houses and terraced fields. Near the school an old lady in traditional dresse checked our tickets and wished us good luck.

Read more ...

jenkins_new_0

Как подключить Windows к Jenkins? Как настроить Windows slave node on Jenkins. Есть известная проблема с подключением Windows агента к Jenkins, поэтому используем Java с установкой его в автозагрузку. Работает отлично и стабильно если все сделать по инструкции ниже. Инструкция по английски, но все предельно понятно. Если что не понятно - пишите.

1. Create, activate and update a new Windows VM (если это VM) 

2. Create a local user “jenkins” with password “jenkins”. 

3. Disable password policy (optional): start > type Local security policy > Account Polices > password policy > Meet complexity = disable) 

4. Setup user's auto login. Run command “netplwiz”, uncheck checkbox, select user “jenkins” and apply changes, enter password “jenkins” two times 

5. Setup time sync server time.domain.com (локальный сервер времени - желательно чтобы Jenkins сервер использовал тот же сервер для синхронизации времени) 

6 .Отключаем котроль подтверждения операций для установки приложений. Go to startup menu, and enter UAC - “Users Account Control Settings”. Turn the slider to down - OFF in the window that pops up. This will disable UAC warnings. (windows 10/2012 - http://winaero.com/blog/how-to-turn-off-and-disable-uac-in-windows-10/) 

Download and install: 

1. Java 

2. Git https://git-scm.com/download, 

3. Install Git, select “3-th” option in a first window 

Create folder C:\jenkins 

Create empty bat file C:\jenkins\start_agent.bat 

Add shortcut (ярлык) to Startup folder: 

login as jenkins, create shortcut for C:\jenkins\start_agent.bat on Desktop, 

run shell:startup, paste shortcut in opened folder. 

Setup Git - настройки зависят от вашего Git, здась пример с авторизацией по ключу. 

Run cmd and copy/paste code below: 

git config --global user.name "Jenkins" 

git config --global user.email "This email address is being protected from spambots. You need JavaScript enabled to view it.

ssh-keygen -t rsa -C "This email address is being protected from spambots. You need JavaScript enabled to view it." (don't enter password) 

Copy content from file %username%/.ssh/id_rsa.pub and paste as a key in http://local-gerrit.com for user jenkins 

При необходимости - Create a file in folder %username%/.ssh/config 

Hostname local-gerrit.com (ваш git)

Port 29418 (порт на катором отвеяает ваш git)

User jenkins 

Test an ability to clone repository 

git clone ssh://This email address is being protected from spambots. You need JavaScript enabled to view it.:29418/project 

On Jenkins server - create a new node on Jenkins as “Dumb Slave”. 

Choose “Launch slave agents via Java Web Start” 

Copy command with particular -secret key 

Open C:\jenkins\start_agent.bat and paste command with particular key: 

Net start w32time 

w32tm /resync 

cd c:\jenkins 

start /min java -jar slave.jar -jnlpUrl http://jenkins.domain.com/computer/node-name/slave-agent.jnlp -secret qwerty12

Рестарт Windows.

Все. Если Нода активна, можете запускать на ней работу.

Add comment


Security code
Refresh