Merge pull request 'Merging tst to main' (#2) from tst into main
HomeLab/Gitea HomeLab/pipeline/head This commit looks good
HomeLab/Gitea HomeLab/pipeline/head This commit looks good
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
// Add build commands here, e.g., sh 'make build'
|
||||
sh 'echo "Building project..."'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
// Add test commands here
|
||||
sh 'echo "Running tests..."'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
failure {
|
||||
echo 'The build failed.'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'jenkins', variable: 'MY_TOKEN')]) {
|
||||
if (isUnix()) {
|
||||
sh 'git clone https://$MY_TOKEN@ggit.niascom.net/homelab/linux.gi'
|
||||
} else {
|
||||
bat 'git clone https://%MY_TOKEN%@git.niascom.net/homelab/linux.git'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
search niascom.net
|
||||
nameserver 192.168.20.1
|
||||
|
||||
nameserver 192.168.20.2
|
||||
|
||||
Reference in New Issue
Block a user