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 {
agent any
stages {
stage('Checking branch main on linux repository') {
stage('Checking the dev branch on linux repository') {
steps {
script { // <--- Added script block
if (isUnix()) {
echo "Unix"
echo "main"
echo "dev"
sh 'ls -lha'
} else {
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.'
}
}
}