Import ssh key
This commit is contained in:
parent
6271d3455f
commit
a9438a8eaf
2 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ stages:
|
||||||
- plagiates
|
- plagiates
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
## get ssh private key from secret variable
|
||||||
|
- eval $(ssh-agent -s)
|
||||||
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
## get API token from secret variable
|
||||||
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
|
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
|
||||||
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg
|
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ def plagiates(gl, conf, args):
|
||||||
|
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
['java', '-jar', '/app/jplag.jar', '-s', 'repos', '-p', 'java', '-r', 'results', '-bc', '$BASECODE', '-l', 'java18'])
|
['java', '-jar', '/app/jplag.jar', '-s', 'repos', '-p', 'java', '-r', 'results', '-bc', '$BASECODE', '-l', 'java17'])
|
||||||
|
|
||||||
|
|
||||||
def parseconf(conf):
|
def parseconf(conf):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue