# Create group USER_GROUP=jenkins groupadd ${USER_GROUP} # Create user(jenkins) USER_NAME=jenkins useradd -m -d /home/${USER_NAME} -g ${USER_GROUP} -s /bin/bash ${USER_NAME} # Install used root cd /home rm -f miniconda3.tar.gz wget https://tools.mindspore.cn/tools/conda/miniconda/x86_64/ubuntu18_04_2/miniconda3.tar.gz umask 022 && tar miniconda3.tar.gz chown -R ${USER_NAME}:${USER_GROUP} /home/miniconda3 # Create user(xsmq) USER_NAME=xsmq useradd -m -d /home/${USER_NAME} -g ${USER_GROUP} -s /bin/bash ${USER_NAME} # Clone conda env su xsmq source /home/miniconda3/bin/activate ci conda create -n ms --clone ci # Activate conda env(ms) source /home/miniconda3/bin/activate ms