gitlab

Execute mysql command before test script on GitLab CI

天大地大妈咪最大 提交于 2020-04-13 04:07:07
问题 I want to create the test database before my test script executes. I have included the mysql service, but I can't find a way to run mysql command. I run mysql ... in before-script , but it keep complaining /bin/bash: line 57: mysql: command not found Here is my .gitlab-ci.yml ↓ image: maven:3.5-jdk-8 services: - mysql variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger

How to fix: error: '<filename>' does not have a commit checked out fatal: adding files failed when inputting “git add .” in command prompt

帅比萌擦擦* 提交于 2020-04-12 18:04:16
问题 I'm trying to add a ruby rails file to my repository in gitlab but it somehow wouldn't allow me to add the file saying that my file does not have commit checked out. I've tried git pull, making the the file again and git adding but still wont work error: '172069/08_lab_routes_controllers_views_172069_172188-Copy/adventure_game/' does not have a commit checked out fatal: adding files failed 回答1: If you have a subdirectory with a .git directory and try to git add . you will see this message.

How to fix: error: '<filename>' does not have a commit checked out fatal: adding files failed when inputting “git add .” in command prompt

风流意气都作罢 提交于 2020-04-12 18:03:26
问题 I'm trying to add a ruby rails file to my repository in gitlab but it somehow wouldn't allow me to add the file saying that my file does not have commit checked out. I've tried git pull, making the the file again and git adding but still wont work error: '172069/08_lab_routes_controllers_views_172069_172188-Copy/adventure_game/' does not have a commit checked out fatal: adding files failed 回答1: If you have a subdirectory with a .git directory and try to git add . you will see this message.

封禁丑闻不断,开源代码托管动了谁的奶酪?

白昼怎懂夜的黑 提交于 2020-04-12 14:22:59
3月24日传出消息,GitHub封禁了一个属于微软的前端开源项目Aurelia,理由是“项目中有两名来自伊朗的外部贡献者”。 作为全球最大的开源软件代码的托管平台,GitHub理应是全球软件开发者、开源软件企业、用户心目中公平、开放、无私和优质服务的圣地。 但是GitHub封禁用户账号、禁止某些用户访问的事件时有发生, 这次竟然封禁了自己公司——微软的开源项目,不得不让业界错愕。 虽然 GitHub首席执行官致歉随后迅速表示“这次的确是个错误”,但是开发者们显然不买账: GitHub 封禁项目的行为是否太随意了? 这样的行为难道不是与开源信念背道而驰吗? 如果有一天,像GitHub这样的托管平台禁止中国用户访问自己的开源代码,我们又该如何应对呢? 1 封禁、歧视,GitHub与GitLab难分高下 “一觉醒来,发现Aurelia网站被关了,大量归档都没办法访问了。之前也没有收到正式的通知,这对我们是毁灭性的行为!” Rob Eisenberg说。他是微软首席UX工程师,也是这个名叫“Aurelia”的前端项目的负责人。 Aurelia是微软开发的JavaScript框架,已开源了5年,由一家美国公司管理。JavaScript是一种高级的解释性编程语言,与HTML、CSS一起被认为是互联网内容工程的三大核心技术,它可用于生成交互式的动态网页,并且能够提供视频游戏等在线程序。

jenkins安装配置一文搞定

天涯浪子 提交于 2020-04-12 10:26:07
1 .前置准备 安装java 配置JAVA_HOME 安装git 安装maven 安装tomcat 2.安装jenkins 本文安装jenkins采用war的方式,war包下载地址: https://jenkins.io/zh/download/ 只需要将下载的jenkins.war放到tomcat下面,启动tomcat后,访问http://localhost:8080/jenkins 即可 首次进入会让配置插件(跳过),管理员等信息; 3.安装插件提速 mac找到 /Users/didi/.jenkins/updates/default.json window:C:\Program Files (x86)\Jenkins\updates\default.json linux:/var/lib/jenkins/updates/default.json 修改:www.google.com改为www.baidu.com 修改:updates.jenkins-ci.org/download改为mirrors.tuna.tsinghua.edu.cn/jenkins jenkins-> plugin manger > advanced>jenkins地址改为: http://mirror.xmission.com/jenkins/updates/update-center.json

Get Gitlab link page content in html

可紊 提交于 2020-04-11 17:26:57
问题 I am having the same use case as here. I would like to access to the gitlab page to get html page content (private repo) but it always direct me to sign in page even I already pass the authentication which I refer to here Below is my code: import urllib, re, sys, requests from bs4 import BeautifulSoup LOGIN_URL = 'https://gitlab.devtools.com//users/auth/ldapmain/callback' session = requests.Session() data = {'username': username, 'password': password, 'authenticity_token': token} r = session

TortoiseGit to Gitlab repository HTTP Basic Access denied

我怕爱的太早我们不能终老 提交于 2020-04-11 17:26:41
问题 Since the update of TortoiseGit from 2.6.0.0 to 2.7.0.0 I cannot access my GitLab anymore through use of TortoiseGit. I managed to fetch, pull and push on 2.6, but as of today with 2.7 this does not work. I have two computers with exactly the same settings, one still on 2.6 and another on 2.7. The 2.7 version provides me the error remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab.com/company/NL/projects/name.git/' This is exactly the same error as mentioned

extracting html content from gitlab url

≡放荡痞女 提交于 2020-04-11 12:19:43
问题 I'm trying to get the html content from gitlab url. But I was struck at Gitlab sign-in page and I am getting html content of sign-in page even after providing username and password. Code: from bs4 import BeautifulSoup import requests username = "username" password = "password" url = "HTTP://gitlab.com/saikumar/webhooktslint" result=requests.get(url, auth=("username", "password")).content /* gets content from the site */ soup = BeautifulSoup(result,'lxml') for link in soup: print link Output:

IEEE 标准协会推出开源协作平台

五迷三道 提交于 2020-04-11 10:06:09
IEEE 标准协会宣布了一个基于 GitLab 的开源协作平台。 IEEE 是世界上最大的技术专业组织,致力于推动技术的发展。IEEE 标准协会the IEEE Standards Association(IEEE SA)是 IEEE 内部的一个组织,负责制定全球各行业的标准。 IEEE 标准协会(SA)提出了一个开源协作平台,即 IEEE SA Open 。 技术上来说,它是一个自托管的 GitLab 实例,结合了 Mattermost (一个 Slack 的替代品 )和 GitLab Pages 。 其官方博文 对此进一步解释道: 该平台使独立软件开发者、初创企业、业界、学术机构等能够在一个协作、安全、负责任的环境中创建、测试、管理和部署创新项目。 它有什么不同或有用的地方? 这个平台最主要的吸引力应该是 IEEE 的会员网络、技术专长和资源。 IEEE 主席 Robert Fish ,也曾(在接受 Radio Kan 的采访时)简单地提到它有什么不同之处,以及为什么 IEEE 想要使用它。 如今,世界上大部分的基础设施都是由软件运行的,而这些软件需要符合通信网络、电网、农业等方面的标准。 这是有道理的 —— 如果我们想提高标准化技术,这在很大程度上取决于软件。所以,这听起来肯定是要对创新的开源项目进行标准化,让它们也能为潜在的资本机会做好准备。 IEEE 还澄清说:

GitLab Runner on VM with internal network only

你。 提交于 2020-04-11 07:38:49
问题 I'm running a GitLab instance from the official jetstack helm chart on my GKE cluster within the Google Cloud. I would like to add a Windows VM to my VPC network that has only internal network access. Normally you have to register the GitLab runner against the https address of GitLab which is not possible with an internal network. Is there a way to register the GitLab runner against the GitLab instance via the internal network? The GitLab instance has its https resource published via an nginx