-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from fellrock/develop
Develop
- Loading branch information
Showing
2 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Testing | ||
pipeline { | ||
agent any | ||
|
||
environment { | ||
// Set the path where you want to copy the GitHub Pages contents | ||
TARGET_FOLDER = '/mnt/user/appdata/nginx/www' | ||
// Set the GitHub repository URL | ||
GITHUB_REPO_URL = 'https://github.com/fellrock/fellrock.github.io.git' | ||
} | ||
|
||
stages { | ||
stage('Clone GitHub Pages') { | ||
steps { | ||
// Clone the GitHub Pages repository | ||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: GITHUB_REPO_URL]]]) | ||
} | ||
} | ||
|
||
stage('Copy to Server') { | ||
steps { | ||
// Copy the contents to the specified folder on the home server | ||
script { | ||
sh "cp -R . $TARGET_FOLDER" | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
// Actions to be performed if the build is successful | ||
echo 'GitHub Pages content copied successfully!' | ||
} | ||
failure { | ||
// Actions to be performed if the build fails | ||
echo 'Build failed. Please check the logs for details.' | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.