Skip to content

Instantly share code, notes, and snippets.

View dfrancolr's full-sized avatar

Daniel Franco dfrancolr

  • Liferay
  • Maringá, Paraná, Brazil
  • 04:27 (UTC -03:00)
View GitHub Profile
def call() {
if (env.CHANGE_BRANCH && env.BUILD_NUMBER == "1" && env.BRANCH_NAME.contains('PR')) {
try {
withCredentials([string(credentialsId: 'jira-token', variable: 'JIRA_TOKEN')]) {
sh """ curl -s -X POST https://${env.JIRA_URL}/rest/api/2/issue/${env.CHANGE_BRANCH}/comment -H 'Authorization: Basic ${JIRA_TOKEN}' -H 'Content-Type: application/json' -d '{ "body": "PR - ${env.CHANGE_URL} "}' """
}
} catch (err) {
println("Can't update Task on Jira")
}
} else {
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
name: startup
name: startup
namespace: default
spec:
selector:
matchLabels:
@dfrancolr
dfrancolr / Welcome file.md
Created March 4, 2020 13:42
Welcome file

Me manda o link com o arquivo publicado no stackedit

0.0 TEL | Telepresence 0.102 launched at Tue Oct 8 11:21:41 2019
0.0 TEL | /usr/bin/telepresence --swap-deployment api --namespace localdev --context minikube --local-cluster --logfile /tmp/telepresence.log --run npm run dev
0.0 TEL | Platform: linux
0.0 TEL | Python 3.6.8 (default, Aug 20 2019, 17:12:48)
0.0 TEL | [GCC 8.3.0]
0.0 TEL | [1] Running: uname -a
0.0 1 | Linux note-daniel 5.0.0-31-generic #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
0.0 TEL | [1] ran in 0.00 secs.
0.0 TEL | BEGIN SPAN main.py:40(main)
0.0 TEL | BEGIN SPAN startup.py:73(__init__)