Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Jenkinsfile2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env groovy

@Library('shared-library@master') _ //master or whatever branch
@Library('javahome-demo@main')_ //master or whatever branch

pipeline{

Expand All @@ -23,7 +23,11 @@ pipeline{

stage ('Check logs') {
steps {
filterLogs ('WARNING', 50)

script{
//calculator.add(2,3)
filterLogs('WARNING', 10)
}
}
}

Expand Down
14 changes: 14 additions & 0 deletions Jenkinsfile5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@Library('javahome-demo')_ //master or whatever branch
def nodeJS = new de.mare.ci.jenkins.NodeJS()
node {
// npm install:
nodeJS.nvm('install')
// npm run build
nodeJS.nvmRun('build')
// prop=abc npm run build
nodeJS.nvmRun('build','prop=abc')
// npm version -m "..."
nodeJS.nvm("version -m\"$COMMIT_MESSAGE\"")
// npm publish
nodeJS.nvm("publish")
}