Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e60d619f0b | |||
| bcd4d49fb0 | |||
| 68dfe2886b |
Vendored
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Checking the dev branch on linux repository') {
|
stage('Checking tst branch on linux repository') {
|
||||||
steps {
|
steps {
|
||||||
script { // <--- Added script block
|
script { // <--- Added script block
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
echo "Unix"
|
echo "Unix"
|
||||||
echo "dev"
|
echo "tst"
|
||||||
sh 'ls -lha'
|
sh 'ls -lha'
|
||||||
} else {
|
} else {
|
||||||
echo "Windows"
|
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