Skip to content
Snippets Groups Projects
Verified Commit 78267c31 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip new pipeline

parent fa2c0fc8
No related branches found
No related tags found
No related merge requests found
...@@ -116,26 +116,13 @@ ...@@ -116,26 +116,13 @@
#nativeBuildInputs = gitlabPackages; #nativeBuildInputs = gitlabPackages;
shellHook = '' shellHook = ''
set -x set -x
${pkgs'.coreutils}/bin/printenv ${pkgs'.coreutils}/bin/printenv
if [ -z "''${GITLAB_TOKEN}" ]; then if [ -z "''${CI_JOB_TOKEN}" ]; then
echo "GITLAB_TOKEN" exit 1
# exit 1
fi
if [ -z "''${CI_REPOSITORY_URL}" ]; then
echo "CI_REPOSITORY_URL"
# exit 1
fi
if [ -z "''${CI_PROJECT_DIR}" ]; then
echo "CI_PROJECT_DIR"
# exit 1
fi fi
cd ''${CI_PROJECT_DIR} || exit 1 cd ''${CI_PROJECT_DIR} || exit 1
...@@ -146,7 +133,7 @@ ...@@ -146,7 +133,7 @@
${pkgs'.git}/bin/git config --global pull.rebase true ${pkgs'.git}/bin/git config --global pull.rebase true
${pkgs'.git}/bin/git config --global http.sslVerify "false" ${pkgs'.git}/bin/git config --global http.sslVerify "false"
${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@} ${pkgs'.git}/bin/git remote set-url origin "''${CI_REPOSITORY_URL}"
${pkgs'.git}/bin/git fetch --all --tags --unshallow ${pkgs'.git}/bin/git fetch --all --tags --unshallow
${pkgs'.git}/bin/git reset --hard origin/master ${pkgs'.git}/bin/git reset --hard origin/master
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment