diff options
author | dd <dd@wx.tnyzeq.icu> | 2024-06-30 17:02:13 +0200 |
---|---|---|
committer | dd <dd@wx.tnyzeq.icu> | 2024-06-30 17:02:13 +0200 |
commit | 62765d042fe1b4a0131b67a6529401e01d0db0e0 (patch) | |
tree | 18331d03e88e75371d5f9bb507fd2a40caf95f39 /2-jenkins.sh | |
parent | 0cd2d6f160faf45d872aa169ae7a1d93adffc114 (diff) | |
download | vyos-jenkins-62765d042fe1b4a0131b67a6529401e01d0db0e0.tar.gz vyos-jenkins-62765d042fe1b4a0131b67a6529401e01d0db0e0.zip |
moved automated scripts files into auto directory
Diffstat (limited to '2-jenkins.sh')
-rwxr-xr-x | 2-jenkins.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/2-jenkins.sh b/2-jenkins.sh index b8bcf77..dc54f0f 100755 --- a/2-jenkins.sh +++ b/2-jenkins.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source ./helper-logic +source ./auto/helper-logic # Clear the screen and print the header PrintHeader @@ -16,7 +16,7 @@ INITIAL_PASSWORD_FILE="/var/lib/jenkins/secrets/initialAdminPassword" NETWORK_INTERFACES=`ls /sys/class/net/ -1 |grep -v -w "lo" |grep -v docker |grep -v dummy |grep -v veth` #region Run SSH script -cp install-files/ssh-script.sh /var/lib/jenkins +cp ./auto/ssh-script.sh /var/lib/jenkins chown jenkins:jenkins /var/lib/jenkins/ssh-script.sh # This script create the SSH key, adds it to the trusted keys and trusts the host itself. @@ -28,7 +28,7 @@ rm /var/lib/jenkins/ssh-script.sh > /dev/null 2>&1 #endregion #region Run GnuPG script -cp install-files/gpg-script.sh /var/lib/jenkins +cp ./auto/gpg-script.sh /var/lib/jenkins chown jenkins:jenkins /var/lib/jenkins/gpg-script.sh # This script generates the GnuPG key pair. @@ -235,7 +235,7 @@ fi # Sometimes the GlobalLibraries config file isn't there yet. if [ ! -f $JENKINS_GLOBALLIBRARIES_FILE ]; then # If that is the case, we copy a clean config into where it should be. - cp install-files/org.jenkinsci.plugins.workflow.libs.GlobalLibraries.xml $JENKINS_GLOBALLIBRARIES_FILE + cp ./auto/org.jenkinsci.plugins.workflow.libs.GlobalLibraries.xml $JENKINS_GLOBALLIBRARIES_FILE fi # Is the Global Libraries configured? @@ -281,7 +281,7 @@ fi # Sometimes the Docker Declarative config file isn't there yet. if [ ! -f $JENKINS_DOCKERDECLARATIVE_FILE ]; then # If that is the case, we copy a clean config into where it should be. - cp install-files/org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig.xml $JENKINS_DOCKERDECLARATIVE_FILE + cp ./auto/org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig.xml $JENKINS_DOCKERDECLARATIVE_FILE fi # Is the Docker Declarative plugin configured? |