Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Give any simple example of Jenkins script.
Home
Jenkins
Give any simple example of Jenkins script.
asked
Jan 17, 2020
in
Jenkins
by
GeorgeBell
Give any simple example of Jenkins script.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 17, 2020
by
GeorgeBell
This is a Jenkins declarative pipeline code for Java:
pipeline {
agent
stages {
stage('Building your first asset') {
agent
steps {
echo 'Build asset'
}
}
stage('Test') {
agent
steps {
echo 'Building project 1'
}
}
}
}
...