2018年7月13日 星期五

This Jenkins instance appears to be offline

1. It has something to do with SSL

Change url to use http instead of https


bash

vi /var/lib/jenkins/hudson.model.UpdateCenter.xml
  1. <?xml version='1.1' encoding='UTF-8'?> <sites> <site> <id>default</id> <url>http://updates.jenkins.io/update-center.json</url> </site> </sites>
    <?xml version='1.1' encoding='UTF-8'?> <sites> <site> <id>default</id> <url>http://updates.jenkins.io/update-center.json</url> </site> </sites>

2. Restart Jenkins service


bash

 service jenkins restart

2018年6月28日 星期四

OpenSTF setting with Ubuntu Server 16.04

1.Environment Setting

bash

# rethinkdb
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -

#
sudo apt-get update
sudo apt-get install git npm rethinkdb android-tools-adb python autoconf automake libtool build-essential ninja-build libzmq3-dev libprotobuf-dev
graphicsmagick yasm stow


#nodejs
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

sudo npm install -g bower karma gulp

mkdir ~/Downloads

#ZeroMQ
cd ~/Downloads
wget http://download.zeromq.org/zeromq-4.1.2.tar.gz
tar -zxvf zeromq-4.1.2.tar.gz
cd zeromq-4.1.2
./configure --without-libsodium --prefix=/usr/local/stow/zeromq-4.1.2
make
sudo make install
cd /usr/local/stow
sudo stow -vv zeromq-4.1.2

#Google protobuf
cd ~/Downloads
git clone https://github.com/google/protobuf.git
cd protobuf
./autogen.sh
./configure --prefix=/usr/local/stow/protobuf-`git rev-parse --short HEAD`
make
sudo make install
cd /usr/local/stow
sudo stow -vv protobuf-*

sudo ldconfig

#OpenSTF
cd
mkdir openstf
cd openstf/
git clone https://github.com/openstf/stf.git
cd stf
sudo npm install -g stf --unsafe-perm

2. Download Chrome Browser


Download chrome browser linux version from google


bash

sudo dpkg -i google-chrome-stable_current_amd64.deb

3. Start STF service

bash

#rethinkdb Start
rethinkdb
#OpenSTF Start
stf local --public-ip *.*.*.* --allow-remote


4. login STF Services

Using Browser open URL :


 http://*.*.*.*:7100

 Ubuntu has a mechanism, that is, the installed network card (NIC) will be renamed to another name when the system is booted. Although there...