Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f577ca317 | |||
| c37e88ee60 | |||
| f7eab604e4 | |||
| bcd4d49fb0 | |||
| 68dfe2886b |
Vendored
+2
-1
@@ -1,11 +1,12 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Test') {
|
||||
stage('Checking branch main on linux repository') {
|
||||
steps {
|
||||
script { // <--- Added script block
|
||||
if (isUnix()) {
|
||||
echo "Unix"
|
||||
echo "main"
|
||||
sh 'ls -lha'
|
||||
} else {
|
||||
echo "Windows"
|
||||
|
||||
@@ -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.'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user