This commit is contained in:
Vendored
+12
-23
@@ -1,27 +1,16 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
withCredentials([string(credentialsId: 'jenkins', variable: 'd7624903f15d6e2e5f76d3ac001e9028eec2a6b5')]) {
|
||||||
}
|
if (isUnix()) {
|
||||||
}
|
sh 'git clone https://%d7624903f15d6e2e5f76d3ac001e9028eec2a6b5%@git.niascom.net/homelab/linux.git'
|
||||||
stage('Build') {
|
} else {
|
||||||
steps {
|
bat 'git clone https://%d7624903f15d6e2e5f76d3ac001e9028eec2a6b5%@git.niascom.net/homelab/linux.git'
|
||||||
// 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.'
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
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.'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user