2 Commits

Author SHA1 Message Date
cristiano e19f9972e0 updating Jenkinsfile
HomeLab/Gitea HomeLab/pipeline/head This commit looks good
2026-05-06 21:38:47 +10:00
cristiano a4e111f785 test dev Jenkinsfile
HomeLab/Gitea HomeLab/pipeline/head This commit looks good
2026-05-06 21:23:00 +10:00
2 changed files with 29 additions and 2 deletions
Vendored
+2 -2
View File
@@ -1,12 +1,12 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Checking tst branch on linux repository') { stage('Checking the dev branch on linux repository') {
steps { steps {
script { // <--- Added script block script { // <--- Added script block
if (isUnix()) { if (isUnix()) {
echo "Unix" echo "Unix"
echo "tst" echo "dev"
sh 'ls -lha' sh 'ls -lha'
} else { } else {
echo "Windows" echo "Windows"
+27
View File
@@ -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.'
}
}
}