diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3e8277677e13fe9162b73b396c9dce70d326f98..b753657fc66084ff1b4f1281c6fc7371ec239e9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,27 +1,15 @@ image: ubuntu before_script: - - echo "Hello, $GITLAB_USER_LOGIN!" - #- curl ifconfig.me - #- ip addr show - #- apt-get install iproute2 - #- apt-file search --regexp 'bin/ip$' - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) - #- apt-get install expect -y - #- apt-get install sshpass - #- sshpass -p $SSH_PASSPHRASE - #- export SSH_ASKPASS=$SSH_PASSPHRASE - echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null - #- expect "Enter passphrase for (stdin):" - #- send $SSH_PASSPHRASE - mkdir -p ~/.ssh - chmod 700 ~/.ssh - ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - - ssh $USER_NAME "./scriptPull/pull.sh" - Test SSH: script: - - echo "test from fork" + - scp testscript.sh $USER_NAME:~/testscript/testscript.sh + - ssh $USER_NAME "chmod 700 testscript/testscript.sh && testscript/testscript.sh" diff --git a/testscript.sh b/testscript.sh index fb95f0ccb88d5182504ceab4e96fdd1b23145a2e..14a4da4d852ed81180cce1e318f07c80720bb5d8 100644 --- a/testscript.sh +++ b/testscript.sh @@ -1,9 +1,9 @@ #!/bin/bash #MSUB -l nodes=1:ppn=4 #MSUB -l walltime=00:10:00 -Load required module files +#Load required module files #msub -I -V -l nodes=1:ppn=4,pmem=5000mb -l -walltime=0:02:00:00 +#walltime=0:02:00:00 module load compiler/intel/19.0 module load mpi/openmpi/4.0 mpicc -o helloworld helloworld.c -no-multibyte-chars